diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-11-14 05:16:54 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-16 16:34:30 +0100 |
commit | 0619317ff8baa2da9238191ad5167ed3618c16d9 (patch) | |
tree | babd22e62aad323bd61539be388620b48a0d1f7c /mm/page_io.c | |
parent | blk-rq-qos: inline check for q->rq_qos functions (diff) | |
download | linux-0619317ff8baa2da9238191ad5167ed3618c16d9.tar.xz linux-0619317ff8baa2da9238191ad5167ed3618c16d9.zip |
block: add polled wakeup task helper
If we're polling for IO on a device that doesn't use interrupts, then
IO completion loop (and wake of task) is done by submitting task itself.
If that is the case, then we don't need to enter the wake_up_process()
function, we can simply mark ourselves as TASK_RUNNING.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/page_io.c')
-rw-r--r-- | mm/page_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_io.c b/mm/page_io.c index d4d1c89bcddd..57572ff46016 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -140,7 +140,7 @@ out: unlock_page(page); WRITE_ONCE(bio->bi_private, NULL); bio_put(bio); - wake_up_process(waiter); + blk_wake_io_task(waiter); put_task_struct(waiter); } |