diff options
author | Ming Lei <ming.lei@redhat.com> | 2021-12-06 19:12:13 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-12-06 09:40:42 -0700 |
commit | 41adf531e390e7969f00a560b8971cbf42f5a6da (patch) | |
tree | 932344cea4539f1f795a8c5ecd2f965367df69e0 /block/blk-throttle.c | |
parent | 4cafe86c9267f9dd5819df946ba8c038ba958370 (diff) | |
download | linux-41adf531e390e7969f00a560b8971cbf42f5a6da.tar.gz linux-41adf531e390e7969f00a560b8971cbf42f5a6da.tar.bz2 linux-41adf531e390e7969f00a560b8971cbf42f5a6da.zip |
blk-mq: don't run might_sleep() if the operation needn't blocking
The operation protected via blk_mq_run_dispatch_ops() in blk_mq_run_hw_queue
won't sleep, so don't run might_sleep() for it.
Reported-and-tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-throttle.c')
0 files changed, 0 insertions, 0 deletions