summaryrefslogtreecommitdiffstats
path: root/include/linux/iomap.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-12-04 13:12:08 -0500
committerJens Axboe <axboe@kernel.dk>2019-02-24 10:20:17 -0500
commit81214bab582eeda068e7904d57b6a3095e8f3855 (patch)
tree54653461f42bc5db4affc51b3de4dddecb61b34f /include/linux/iomap.h
parent0bbb280d7b767e7c86a5adfc87c76a6f09ab0423 (diff)
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.h1
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,
162 unsigned flags); 162 unsigned flags);
163ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, 163ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
164 const struct iomap_ops *ops, iomap_dio_end_io_t end_io); 164 const struct iomap_ops *ops, iomap_dio_end_io_t end_io);
165int iomap_dio_iopoll(struct kiocb *kiocb, bool spin);
165 166
166#ifdef CONFIG_SWAP 167#ifdef CONFIG_SWAP
167struct file; 168struct file;