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>
Tue, 1 Aug 2023 23:32:38 +0000 (17:32 -0600)
commitdaa99c5a3319e371029834092ee5f7c84bb43a70
treed0209dd41eda06d49009bd4e0f15bca7875c2ae3
parent3a0be38cc84d05e86f1c7d5b601513f31d3b24fa
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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c