diff options
| author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-05-22 14:58:12 +0200 |
|---|---|---|
| committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-05-28 15:42:14 +0200 |
| commit | e62bc6260db925674403b1b60a2e8eb3e4759ef1 (patch) | |
| tree | 47660696494c1c13ad3a6e236cda8b298cd78038 | |
| parent | 5e5f38bbca31c11cd5eef4632b2a1139088dc9db (diff) | |
| download | linux-next-history-e62bc6260db925674403b1b60a2e8eb3e4759ef1.tar.gz | |
fs/ntfs3: force waiting for direct I/O completion
It makes ntfs3 wait for direct I/O completion before returning to the
caller, instead of allowing the write path to complete asynchronously.
The issue was discovered during internal tests.
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
| -rw-r--r-- | fs/ntfs3/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c index 2d1de3739ffea..26bec5be248e1 100644 --- a/fs/ntfs3/file.c +++ b/fs/ntfs3/file.c @@ -1398,7 +1398,8 @@ static ssize_t ntfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) goto out; } - ret = iomap_dio_rw(iocb, from, &ntfs_iomap_ops, NULL, 0, NULL, 0); + ret = iomap_dio_rw(iocb, from, &ntfs_iomap_ops, NULL, + IOMAP_DIO_FORCE_WAIT, NULL, 0); if (ret == -ENOTBLK) { /* Returns -ENOTBLK in case of a page invalidation failure for writes.*/ |
