Commit ad3d9d7ede04a9c71be7a9fe1a23961817f371f7

Authored by Jens Axboe
1 parent 401a18e92c

block: fix issue with calling blk_stop_queue() from the request_fn handler

When the queue work handler was converted to delayed work, the
stopping was inadvertently made sync as well. Change this back
to being async stop, using __cancel_delayed_work() instead of
cancel_delayed_work().

Reported-by: Jeremy Fitzhardinge <jeremy@goop.org>
Reported-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -271,7 +271,7 @@
271 271 **/
272 272 void blk_stop_queue(struct request_queue *q)
273 273 {
274   - cancel_delayed_work(&q->delay_work);
  274 + __cancel_delayed_work(&q->delay_work);
275 275 queue_flag_set(QUEUE_FLAG_STOPPED, q);
276 276 }
277 277 EXPORT_SYMBOL(blk_stop_queue);