]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - block/blk-core.c
block: don't protect generic_make_request_checks with blk_queue_enter
authorMing Lei <ming.lei@redhat.com>
Wed, 15 May 2019 03:03:09 +0000 (11:03 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 May 2019 12:09:11 +0000 (06:09 -0600)
commitfe2008640ae36e3920cf41507a84fb5d3227435a
treef53cbb822e31bf08820624a2269a4f43a25c0b35
parent47cdee29ef9d94e485eb08f962c74943023a5271
block: don't protect generic_make_request_checks with blk_queue_enter

Now a063057d7c73 ("block: Fix a race between request queue removal and
the block cgroup controller") has been reverted, and blkcg_exit_queue()
won't be called in blk_cleanup_queue() any more.

So don't need to protect generic_make_request_checks() with
blk_queue_enter(), then the total mess can be cleaned.

37f9579f4c31 ("blk-mq: Avoid that submitting a bio concurrently with device
removal triggers a crash") is reverted.

Cc: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c