public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Regression] Commit 02c24a82187d5a628c68edfe71ae60dc135cd178 breaks s2disk
@ 2011-08-01 23:47 Rafael J. Wysocki
  2011-08-02  0:17 ` Rafael J. Wysocki
  0 siblings, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2011-08-01 23:47 UTC (permalink / raw)
  To: Josef Bacik
  Cc: LKML, Linus Torvalds, Linux PM mailing list, Al Viro, Jan Kara

Hi,

Unfortunately s2disk (which is a user space tool for saving hibernate images)
doesn't work any more after your commit 02c24a82187d5a628c68edfe71ae60dc135cd178
(fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers).
The symptom is that the s2disk's resume counterpart cannot find the image in
the device even though s2disk considers it as successfully saved.

What happens is that s2disk opens a block device (disk partition to be precise)
directly and writes to it eventually calling fsync().  My interpretation of the
failure is that before commit 02c24a82187d5a628c68ed, when s2disk called fsync()
the VFS layer would run filemap_write_and_wait_range() that in turn would cause
the data to go to the disk, but after that commit this doesn't happen any more.

If I'm right, then not only s2disk, but any process writing directly to a block
device will have a problem with fsync().

Thanks,
Rafael


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

end of thread, other threads:[~2011-08-02  9:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-01 23:47 [Regression] Commit 02c24a82187d5a628c68edfe71ae60dc135cd178 breaks s2disk Rafael J. Wysocki
2011-08-02  0:17 ` Rafael J. Wysocki
2011-08-02  1:22   ` Linus Torvalds
2011-08-02  1:30     ` Al Viro
2011-08-02  1:38       ` Linus Torvalds
2011-08-02  1:39       ` Al Viro
2011-08-02  9:26         ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox