generic: test mapped write after shutdown and failed writeback
authorBrian Foster <bfoster@redhat.com>
Wed, 10 Feb 2021 17:06:28 +0000 (12:06 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sun, 28 Feb 2021 14:17:26 +0000 (22:17 +0800)
commit011bfb01f7f9f8f37c01d0a1ae0b0ca28e96a4f5
tree1ac4f28df2ddaea4df74186f9f653c694213f3b4
parent8cbc48b460b698b62114b1e7593d5c30154005ce
generic: test mapped write after shutdown and failed writeback

XFS has a regression where it failed to check shutdown status in the
write fault path. This produced an iomap warning if the page
happened to recently fail a writeback attempt because writeback
failure can clear Uptodate status on the page.

Add a test for this scenario to help ensure mapped write failures
are handled as expected in the event of filesystem shutdown.
Upstream commit e4826691cc7e ("xfs: restore shutdown check in mapped
write fault path") fixed this bug.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/623 [new file with mode: 0755]
tests/generic/623.out [new file with mode: 0644]
tests/generic/group