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 14:06:12 +0000 (08:06 -0600)
commit5e84d76ac6dc99385729ef38cb0da6db3028b3be
treee7ea31b5d92134631e36a5f67f06e9f5aa531488
parent8bd98a62c2d248c0f03ff15794f7a4fb979c1237
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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c