generic: test for seeing unseen fsync errors on newly open files

This adds a regression test for the following kernel patch:

    b4678df184b3 ("errseq: Always report a writeback error once")

This is motivated by some rather odd behavior done by the PostgreSQL
project. The main database writers will offload the fsync calls to a
separate process, which can open files after a writeback error has
already occurred.

This used to work with older kernels that reported the error to only
one fd, but with the errseq_t changes we lost the ability to see
errors that occurred before the open. The above patch restores that
behavior.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Jeff Layton
2018-05-08 08:52:24 -04:00
committed by Eryu Guan
parent 331edc6af6
commit 22a147a1ad
3 changed files with 110 additions and 0 deletions
+1
View File
@@ -489,3 +489,4 @@
484 auto quick
485 auto quick insert
486 auto quick attr
487 auto quick