]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: don't use sync workqueue flushing from drivers
authorJens Axboe <axboe@fb.com>
Wed, 3 May 2017 17:08:14 +0000 (11:08 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 3 May 2017 17:44:43 +0000 (11:44 -0600)
commit458b3b904a43cb297d987f5fb8cfaeeed952e657
tree1336e56bf590c61da30f2fe56a3d3dfeb563e70f
parent2883b93581280f26e69875bc589ec069902c9e88
blk-mq: don't use sync workqueue flushing from drivers

A previous commit introduced the sync flush, which we need from
internal callers like blk_mq_quiesce_queue(). However, we also
call the stop helpers from drivers, particularly from ->queue_rq()
when we have to stop processing for a bit. We can't block from
those locations, and we don't have to guarantee that we're
fully flushed.

Fixes: c7ed7f7ac497 ("blk-mq: unify hctx delayed_run_work and run_work")
Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c