iomap: wire up the iopoll method
authorChristoph Hellwig <hch@lst.de>
Tue, 4 Dec 2018 18:12:08 +0000 (11:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 24 Feb 2019 15:20:17 +0000 (08:20 -0700)
commit81214bab582eeda068e7904d57b6a3095e8f3855
tree54653461f42bc5db4affc51b3de4dddecb61b34f
parent0bbb280d7b767e7c86a5adfc87c76a6f09ab0423
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>
fs/gfs2/file.c
fs/iomap.c
fs/xfs/xfs_file.c
include/linux/iomap.h