iomap: don't try to poll multi-bio I/Os in __iomap_dio_rw
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 11:12:13 +0000 (13:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:35 +0000 (06:17 -0600)
commitf79d474905fec0bfae1244e75571b7916fe02ea2
treeb41706904cbd77ce430abce38b1093feecc27aca
parent71fc3f5e2c00c966e6a2ffebadfbcc6914249d32
iomap: don't try to poll multi-bio I/Os in __iomap_dio_rw

If an iocb is split into multiple bios we can't poll for both.  So don't
bother to even try to poll in that case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Mark Wunderlich <mark.wunderlich@intel.com>
Link: https://lore.kernel.org/r/20211012111226.760968-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c