diff options
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index ee3cb3a5e278..d2da64170513 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -262,7 +262,7 @@ EXPORT_SYMBOL(blk_start_queue); | |||
262 | **/ | 262 | **/ |
263 | void blk_stop_queue(struct request_queue *q) | 263 | void blk_stop_queue(struct request_queue *q) |
264 | { | 264 | { |
265 | __cancel_delayed_work(&q->delay_work); | 265 | cancel_delayed_work(&q->delay_work); |
266 | queue_flag_set(QUEUE_FLAG_STOPPED, q); | 266 | queue_flag_set(QUEUE_FLAG_STOPPED, q); |
267 | } | 267 | } |
268 | EXPORT_SYMBOL(blk_stop_queue); | 268 | EXPORT_SYMBOL(blk_stop_queue); |
@@ -319,10 +319,8 @@ EXPORT_SYMBOL(__blk_run_queue); | |||
319 | */ | 319 | */ |
320 | void blk_run_queue_async(struct request_queue *q) | 320 | void blk_run_queue_async(struct request_queue *q) |
321 | { | 321 | { |
322 | if (likely(!blk_queue_stopped(q))) { | 322 | if (likely(!blk_queue_stopped(q))) |
323 | __cancel_delayed_work(&q->delay_work); | 323 | mod_delayed_work(kblockd_workqueue, &q->delay_work, 0); |
324 | queue_delayed_work(kblockd_workqueue, &q->delay_work, 0); | ||
325 | } | ||
326 | } | 324 | } |
327 | EXPORT_SYMBOL(blk_run_queue_async); | 325 | EXPORT_SYMBOL(blk_run_queue_async); |
328 | 326 | ||