iomap: completed polled IO inline
authorJens Axboe <axboe@kernel.dk>
Thu, 20 Jul 2023 17:47:43 +0000 (11:47 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Jul 2023 16:33:59 +0000 (10:33 -0600)
commit443c5013046b379112766fc55886f749451064ca
tree2cc8ba70cf977cddda00d75b01b97ac7aa7103e5
parentbc03b828501d1f35b0d698ca9ac92b97d39ec031
iomap: completed polled IO inline

Polled IO is only allowed for conditions where task completion is safe
anyway, so we can always complete it inline. This cannot easily be
checked with a submission side flag, as the block layer may clear the
polled flag and turn it into a regular IO instead. Hence we need to
check this at completion time. If REQ_POLLED is still set, then we know
that this IO was successfully polled, and is completing in task context.

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