iomap: only set iocb->private for polled bio
authorJens Axboe <axboe@kernel.dk>
Thu, 20 Jul 2023 17:47:56 +0000 (11:47 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Jul 2023 16:33:59 +0000 (10:33 -0600)
commit61c36a82e60f25a19bf24c97bf3d3f179ec0c5c3
tree91f46897d70e554a4bd2a59ae077498da1fc783c
parent443c5013046b379112766fc55886f749451064ca
iomap: only set iocb->private for polled bio

iocb->private is only used for polled IO, where the completer will
find the bio to poll through that field.

Assign it when we're submitting a polled bio, and get rid of the
dio->poll_bio indirection.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c