aboutsummaryrefslogtreecommitdiffstats
path: root/fs/direct-io.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-11-04 09:34:34 -0600
committerJens Axboe <axboe@fb.com>2016-11-11 13:40:25 -0700
commitbbd7bb7017d5c2b1e75f3818b4ce88fa58bb0eab (patch)
tree5a025d557bb82df1b27a209e924b0941f2c42aaa /fs/direct-io.c
parentBlock: mtip32xx: Improvement in code readability when memdup_user() fails. (diff)
downloadlinux-dev-bbd7bb7017d5c2b1e75f3818b4ce88fa58bb0eab.tar.xz
linux-dev-bbd7bb7017d5c2b1e75f3818b4ce88fa58bb0eab.zip
block: move poll code to blk-mq
The poll code is blk-mq specific, let's move it to blk-mq.c. This is a prep patch for improving the polling code. Signed-off-by: Jens Axboe <axboe@fb.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/direct-io.c')
-rw-r--r--fs/direct-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c
index a5138c564019..835e23a4ee4b 100644
--- a/fs/direct-io.c
+++ b/fs/direct-io.c
@@ -457,7 +457,7 @@ static struct bio *dio_await_one(struct dio *dio)
dio->waiter = current;
spin_unlock_irqrestore(&dio->bio_lock, flags);
if (!(dio->iocb->ki_flags & IOCB_HIPRI) ||
- !blk_poll(bdev_get_queue(dio->bio_bdev), dio->bio_cookie))
+ !blk_mq_poll(bdev_get_queue(dio->bio_bdev), dio->bio_cookie))
io_schedule();
/* wake up sets us TASK_RUNNING */
spin_lock_irqsave(&dio->bio_lock, flags);