diff options
author | Christoph Hellwig <hch@lst.de> | 2018-12-04 21:12:08 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-02-24 18:20:17 +0300 |
commit | 81214bab582eeda068e7904d57b6a3095e8f3855 (patch) | |
tree | 54653461f42bc5db4affc51b3de4dddecb61b34f /include/linux/iomap.h | |
parent | 0bbb280d7b767e7c86a5adfc87c76a6f09ab0423 (diff) | |
download | linux-81214bab582eeda068e7904d57b6a3095e8f3855.tar.xz |
iomap: wire up the iopoll method
Store the request queue the last bio was submitted to in the iocb
private data in addition to the cookie so that we find the right block
device. Also refactor the common direct I/O bio submission code into a
nice little helper.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Modified to use bio_set_polled().
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/iomap.h')
-rw-r--r-- | include/linux/iomap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 9a4258154b25..0fefb5455bda 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -162,6 +162,7 @@ typedef int (iomap_dio_end_io_t)(struct kiocb *iocb, ssize_t ret, unsigned flags); ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, const struct iomap_ops *ops, iomap_dio_end_io_t end_io); +int iomap_dio_iopoll(struct kiocb *kiocb, bool spin); #ifdef CONFIG_SWAP struct file; |