Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0265a24b authored by Bart Van Assche's avatar Bart Van Assche Committed by Sridhar Arra
Browse files

blk-mq: Avoid that submitting a bio concurrently with device removal triggers a crash



Because blkcg_exit_queue() is now called from inside blk_cleanup_queue()
it is no longer safe to access cgroup information during or after the
blk_cleanup_queue() call. Hence protect the generic_make_request_checks()
call with blk_queue_enter() / blk_queue_exit().

Change-Id: I156a5ecabeb21b320d9303f8cb193b273cf3b8a1
Reported-by: default avatarMing Lei <ming.lei@redhat.com>
Fixes: a063057d7c73 ("block: Fix a race between request queue removal and the block cgroup controller")
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Joseph Qi <joseph.qi@linux.alibaba.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Git-commit: 37f9579f4c31a6d698dbf3016d7bf132f9288d30
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block


Signed-off-by: default avatarSridhar Arra <sarra@codeaurora.org>
parent 93c31f7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment