diff options
author | Jens Axboe <[email protected]> | 2023-07-08 09:55:27 -0600 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-08-01 17:32:43 -0600 |
commit | 9cf3516c29e6dba95d36d7d86c03b06495107859 (patch) | |
tree | 80d8f5a6898ecf8d0b532ab8eaabd3e322e796bc /rust/helpers.c | |
parent | 7b3c14d1a96bf63c078c3bbfe5573fb964e80b95 (diff) |
fs: add IOCB flags related to passing back dio completions
Async dio completions generally happen from hard/soft IRQ context, which
means that users like iomap may need to defer some of the completion
handling to a workqueue. This is less efficient than having the original
issuer handle it, like we do for sync IO, and it adds latency to the
completions.
Add IOCB_DIO_CALLER_COMP, which the issuer can set if it is able to
safely punt these completions to a safe context. If the dio handler is
aware of this flag, assign a callback handler in kiocb->dio_complete and
associated data io kiocb->private. The issuer will then call this
handler with that data from task context.
No functional changes in this patch.
Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions