]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: check direct IO writes with io_uring and O_DSYNC are durable
authorFilipe Manana <fdmanana@suse.com>
Mon, 7 Nov 2022 09:38:58 +0000 (09:38 +0000)
committerZorro Lang <zlang@kernel.org>
Tue, 8 Nov 2022 15:15:08 +0000 (23:15 +0800)
commitbe20e5f491e06d4784cb50f916b2f6b8f42917df
tree59ade2ff38dbc8f85125cfbb8373587f6d5c8e38
parent41f2bbdec5faa5d6522e86e63c1f30473a99dbfe
generic: check direct IO writes with io_uring and O_DSYNC are durable

Test that direct IO writes with io_uring and O_DSYNC are durable if a
power failure happens after they complete.

This is motivated by a regression on btrfs, affecting 5.15 stable
kernels and kernels up to 6.0, where often the writes were not
persisted (same behaviour as if O_DSYNC was not provided). This was
recently fixed by the following commit:

8184620ae212 ("btrfs: fix lost file sync on direct IO write with
nowait and dsync iocb")

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/703 [new file with mode: 0755]
tests/generic/703.out [new file with mode: 0644]