diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-04-25 00:32:55 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-25 22:08:55 +0200 |
commit | 0f99fc513ddd28de155c58547824a9fd63daacea (patch) | |
tree | 402b7ee95f3e94fc5d0e3b7d191b10e68899cd15 /include | |
parent | Linux 6.3 (diff) | |
download | linux-0f99fc513ddd28de155c58547824a9fd63daacea.tar.xz linux-0f99fc513ddd28de155c58547824a9fd63daacea.zip |
splice: clear FMODE_NOWAIT on file if splice/vmsplice is used
In preparation for pipes setting FMODE_NOWAIT on pipes to indicate that
RWF_NOWAIT/IOCB_NOWAIT is fully supported, have splice and vmsplice
clear that file flag. Splice holds the pipe lock around IO and cannot
easily be refactored to avoid that, as splice and pipes are inherently
tied together.
By clearing FMODE_NOWAIT if splice is being used on a pipe, other users
of the pipe will know that the pipe is no longer safe for RWF_NOWAIT
and friends.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions