linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [4.14-rc1 bug] fstests generic/441 failure on ext2
@ 2017-09-18 11:23 Eryu Guan
  2017-09-18 12:10 ` Jeff Layton
  2017-09-22 13:33 ` [PATCH] mm: have filemap_check_and_advance_wb_err clear AS_EIO/AS_ENOSPC Jeff Layton
  0 siblings, 2 replies; 8+ messages in thread
From: Eryu Guan @ 2017-09-18 11:23 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux-ext4, Jeff Layton

Hi all,

With ext2 driven by ext4 module (or ext4 without journal, I haven't
tested ext2 module, but I guess the result is the same), v4.14-rc1
kernel starts to fail fstests generic/441 as:

+First fsync after reopen of fd[0] failed: Input/output error

git bisect shows that this is uncovered by commit ffb959bbdf92 ("mm:
remove optimizations based on i_size in mapping writeback waits"), which
removed (i_size == 0) check in filemap_fdatawait().

I say "uncovered" because test fails with 4.13 kernel too if we re-open
the test file without O_TRUNC flag in src/fsync-err.c (so file size is
not zero, and fails the i_size == 0 check).

The EIO was returned by sync_inode_metadata() in __generic_file_fsync(),
the call trace is like:

do_fsync
 vfs_fsync_range
  ext4_sync_file
   __generic_file_fsync
    sync_inode_metadata
     writeback_single_inode
      __writeback_single_inode
       filemap_fdatawait  => EIO here

Thanks,
Eryu

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-09-25 19:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-18 11:23 [4.14-rc1 bug] fstests generic/441 failure on ext2 Eryu Guan
2017-09-18 12:10 ` Jeff Layton
2017-09-19 14:57   ` Jan Kara
2017-09-19 15:09     ` Jeff Layton
2017-09-20 11:12       ` Jan Kara
2017-09-22 13:33 ` [PATCH] mm: have filemap_check_and_advance_wb_err clear AS_EIO/AS_ENOSPC Jeff Layton
2017-09-25  8:17   ` Jan Kara
2017-09-25 19:53   ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).