diff options
author | Jens Axboe <axboe@fb.com> | 2016-11-04 09:34:34 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-11 13:40:25 -0700 |
commit | bbd7bb7017d5c2b1e75f3818b4ce88fa58bb0eab (patch) | |
tree | 5a025d557bb82df1b27a209e924b0941f2c42aaa /fs/direct-io.c | |
parent | b425b0201e89e6509032985532a33f1f92ac62a6 (diff) | |
download | linux-stable-bbd7bb7017d5c2b1e75f3818b4ce88fa58bb0eab.tar.gz linux-stable-bbd7bb7017d5c2b1e75f3818b4ce88fa58bb0eab.tar.bz2 linux-stable-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.c | 2 |
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); |