iomap: add IOMAP_DIO_INLINE_COMP
authorJens Axboe <axboe@kernel.dk>
Wed, 19 Jul 2023 17:21:09 +0000 (11:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Aug 2023 23:32:41 +0000 (17:32 -0600)
commit7b3c14d1a96bf63c078c3bbfe5573fb964e80b95
treebc700d67f2899ae4974b0372ef5f56e55f74aa7c
parentdaa99c5a3319e371029834092ee5f7c84bb43a70
iomap: add IOMAP_DIO_INLINE_COMP

Rather than gate whether or not we need to punt a dio completion to a
workqueue on whether the IO is a write or not, add an explicit flag for
it. For now we treat them the same, reads always set the flags and async
writes do not.

No functional changes in this patch.

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