generic: test data integrity with mixed buffer read and aio dio write
PATCH v3 1/1 generic: test data integrity with mixed buffer read and aio dio write
When mixing buffered reads and asynchronous direct writes, it is possible to end up with the situation where we have stale data in the page cache while the new data is already written to disk.
Signed-off-by Zorro Lang <[email protected]>
---
Hi,
V3 follow eguan@'s suggestions, did below main changes:
1) Change fs_check() to file_check()
2) Always check on-disk data after buffered read.
3) Use TIMEOUT_PROG
4) Improve the reader loop
Thanks,
Zorro
.gitignore | 1 + src/aio-dio-regress/aio-dio-cycle-write.c | 275 ++++++++++++++++++++++++++++++ tests/generic/999 | 90 ++++++++++ tests/generic/999.out | 2 + tests/generic/group | 1 + 5 files changed, 369 insertions(+) create mode 100644 src/aio-dio-regress/aio-dio-cycle-write.c create mode 100755 tests/generic/999 create mode 100644 tests/generic/999.out
.gitignore +1 -0
@@ -133,6 +133,7 @@ /src/writemod /src/writev_on_pagefault /src/xfsctl +/src/aio-dio-regress/aio-dio-cycle-write /src/aio-dio-regress/aio-dio-extend-stat /src/aio-dio-regress/aio-dio-fcntl-race /src/aio-dio-regress/aio-dio-hole-filling-race
src/aio-dio-regress/aio-dio-cycle-write.c new file +275 -0
275 lines not on this page · raw message
tests/generic/999 new file +90 -0
90 lines not on this page · raw message
tests/generic/999.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 999 +Silence is golden
tests/generic/group +1 -0
@@ -452,3 +452,4 @@ 447 auto quick clone 448 auto quick rw 449 auto quick acl enospc +999 auto aio rw
Signature · 1 line
2.13.5