aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMike Snitzer <[email protected]>2025-10-27 17:52:28 +0000
committerAnna Schumaker <[email protected]>2025-11-10 15:32:28 +0000
commitd32ddfeb559342e89a4d06b1df4e7e5e96df3762 (patch)
treea1f979266c353804369af142b818445fe193c669 /net/unix/af_unix.c
parentnfs/localio: backfill missing partial read support for misaligned DIO (diff)
downloadkernel-d32ddfeb559342e89a4d06b1df4e7e5e96df3762.tar.gz
kernel-d32ddfeb559342e89a4d06b1df4e7e5e96df3762.zip
nfs/localio: Ensure DIO WRITE's IO on stable storage upon completion
LOCALIO's misaligned DIO WRITE support requires synchronous IO for any misaligned head and/or tail that are issued using buffered IO. In addition, it is important that the O_DIRECT middle be on stable storage upon its completion via AIO. Otherwise, a misaligned DIO WRITE could mix buffered IO for the head/tail and direct IO for the DIO-aligned middle -- which could lead to problems associated with deferred writes to stable storage (such as out of order partial completions causing incorrect advancement of the file's offset, etc). Fixes: c817248fc831 ("nfs/localio: add proper O_DIRECT support for READ and WRITE") Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions