Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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(). Reported-by: Ming Lei <[email protected]> Fixes: a063057 ("block: Fix a race between request queue removal and the block cgroup controller") Signed-off-by: Bart Van Assche <[email protected]> Cc: Ming Lei <[email protected]> Cc: Joseph Qi <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information