Skip to content

Commit 9a2d43b

Browse files
committed
block: handle blk_pm_resume_request() requests in blk_execute_rq_nowait()
For blk_pm_resume_request() requests (which are used only by IDE subsystem currently) the queue is stopped so we need to call ->request_fn explicitly. Thanks to: - Rafael for reporting/bisecting the bug - Borislav/Rafael for testing the fix This is a preparation for converting IDE to use blk_execute_rq(). Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: Borislav Petkov <petkovbb@gmail.com> Cc: Jens Axboe <jens.axboe@oracle.com> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent 64ea1b4 commit 9a2d43b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎block/blk-exec.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk,
5858
spin_lock_irq(q->queue_lock);
5959
__elv_add_request(q, rq, where, 1);
6060
__generic_unplug_device(q);
61+
/* the queue is stopped so it won't be plugged+unplugged */
62+
if (blk_pm_resume_request(rq))
63+
q->request_fn(q);
6164
spin_unlock_irq(q->queue_lock);
6265
}
6366
EXPORT_SYMBOL_GPL(blk_execute_rq_nowait);

0 commit comments

Comments
 (0)