aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-03-25 11:58:59 -0400
committerJens Axboe <jaxboe@fusionio.com>2011-03-25 12:04:08 -0400
commitad3d9d7ede04a9c71be7a9fe1a23961817f371f7 (patch)
tree33b0eded3b689020529cf8c0d4febf956ff10140 /block
parent401a18e92ce32cd0ddfa5738899ca2b8114f2bbf (diff)
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>
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 64e96ee1d6a..e0a06236393 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -271,7 +271,7 @@ EXPORT_SYMBOL(blk_start_queue);
271 **/ 271 **/
272void blk_stop_queue(struct request_queue *q) 272void blk_stop_queue(struct request_queue *q)
273{ 273{
274 cancel_delayed_work(&q->delay_work); 274 __cancel_delayed_work(&q->delay_work);
275 queue_flag_set(QUEUE_FLAG_STOPPED, q); 275 queue_flag_set(QUEUE_FLAG_STOPPED, q);
276} 276}
277EXPORT_SYMBOL(blk_stop_queue); 277EXPORT_SYMBOL(blk_stop_queue);