summaryrefslogtreecommitdiff
path: root/drivers/block/null_blk/main.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-01-12 19:12:20 +0300
committerJens Axboe <axboe@kernel.dk>2024-01-13 07:09:42 +0300
commit7b4f36cd22a65b750b4cb6ac14804fb7d6e6c67d (patch)
tree864387a9062eca7d66d11bcc685c81dc1b9fa7f6 /drivers/block/null_blk/main.c
parent309ce6741430b5a7b5e85cd1a7569647f8d9dfa6 (diff)
downloadlinux-7b4f36cd22a65b750b4cb6ac14804fb7d6e6c67d.tar.xz
block: ensure we hold a queue reference when using queue limits
q_usage_counter is the only thing preventing us from the limits changing under us in __bio_split_to_limits, but blk_mq_submit_bio doesn't hold it while calling into it. Move the splitting inside the region where we know we've got a queue reference. Ideally this could still remain a shared section of code, but let's keep the fix simple and defer any refactoring here to later. Reported-by: Christoph Hellwig <hch@lst.de> Fixes: 900e08075202 ("block: move queue enter logic into blk_mq_submit_bio()") Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk/main.c')
0 files changed, 0 insertions, 0 deletions