diff options
author | 2021-12-06 11:33:50 +0800 | |
---|---|---|
committer | 2021-12-06 09:41:40 -0700 | |
commit | 73f3760eddc9bc32c207fff06537f98f94bef451 (patch) | |
tree | 950ca905ee857f17114ad89a63c9787eb9d5c2cb /lib/error-inject.c | |
parent | blk-mq: don't run might_sleep() if the operation needn't blocking (diff) | |
download | linux-73f3760eddc9bc32c207fff06537f98f94bef451.tar.gz linux-73f3760eddc9bc32c207fff06537f98f94bef451.tar.bz2 linux-73f3760eddc9bc32c207fff06537f98f94bef451.zip |
blk-mq: don't use plug->mq_list->q directly in blk_mq_run_dispatch_ops()
blk_mq_run_dispatch_ops() is defined as one macro, and plug->mq_list
will be changed when running 'dispatch_ops', so add one local variable
for holding request queue.
Reported-and-tested-by: Yi Zhang <yi.zhang@redhat.com>
Fixes: 4cafe86c9267 ("blk-mq: run dispatch lock once in case of issuing from list")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/error-inject.c')
0 files changed, 0 insertions, 0 deletions