diff options
author | Jens Axboe <axboe@fb.com> | 2014-04-16 10:38:35 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-16 14:15:24 -0600 |
commit | 6700a678c02e47b6d50c51da2a46ff80efedb8c7 (patch) | |
tree | 6a3bed7a3f012c54ca099d5e7198d4b223cdd3db | |
parent | fd1270d5df6a005e1248e87042159a799cc4b2c9 (diff) | |
download | lwn-6700a678c02e47b6d50c51da2a46ff80efedb8c7.tar.gz lwn-6700a678c02e47b6d50c51da2a46ff80efedb8c7.zip |
blk-mq: kill preempt disable/enable in blk_mq_work_fn()
blk_mq_work_fn() is always invoked off the bounded workqueues,
so it can happily preempt among the queues in that set without
causing any issues for blk-mq.
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 1fa01ff0f9bc..b59a8d027dff 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -714,9 +714,7 @@ static void blk_mq_work_fn(struct work_struct *work) hctx = container_of(work, struct blk_mq_hw_ctx, delayed_work.work); - preempt_disable(); __blk_mq_run_hw_queue(hctx); - preempt_enable(); } static void __blk_mq_insert_request(struct blk_mq_hw_ctx *hctx, |