Commit c43c83a2 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro

direct-io: only use block polling if explicitly requested

Signed-off-by: default avatarChristoph Hellwig <>
Reviewed-by: default avatarStephen Bates <>
Tested-by: default avatarStephen Bates <>
Acked-by: default avatarJeff Moyer <>
Signed-off-by: default avatarAl Viro <>
parent 97be7ebe
......@@ -445,7 +445,8 @@ static struct bio *dio_await_one(struct dio *dio)
dio->waiter = current;
spin_unlock_irqrestore(&dio->bio_lock, flags);
if (!blk_poll(bdev_get_queue(dio->bio_bdev), dio->bio_cookie))
if (!(dio->iocb->ki_flags & IOCB_HIPRI) ||
!blk_poll(bdev_get_queue(dio->bio_bdev), dio->bio_cookie))
/* wake up sets us TASK_RUNNING */
spin_lock_irqsave(&dio->bio_lock, flags);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment