All of lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev]  Potential data corruption?
@ 2019-12-07 10:10 =?gb18030?B?uuzJ1bXEzf67r7H9?=
  2019-12-08  4:00 ` Chao Yu
  0 siblings, 1 reply; 6+ messages in thread
From: =?gb18030?B?uuzJ1bXEzf67r7H9?= @ 2019-12-07 10:10 UTC (permalink / raw)
  To: =?gb18030?B?bGludXgtZjJmcy1kZXZlbA==?=

Hi F2FS experts,
The following confuses me:

A typical fsync() goes like this:
1) Issue data block IOs
2) Wait for completion
3) Issue chained node block IOs
4) Wait for completion
5) Issue flush command

In order to preserve data consistency under sudden power failure, it requires that the storage device persists data blocks prior to node blocks.
Otherwise, under sudden power failure, it's possible that the persisted node block points to NULL data blocks.

However, according to this study (https://www.usenix.org/conference/fast18/presentation/won), the persistent order of requests doesn't necessarily equals to the request finish order (due to device volatile caches). This means that its possible that the node blocks get persisted prior to data blocks.

Does F2FS have other mechanisms to prevent such inconsistency? Or does it require the device to persist data without reordering?

Thanks!

Hongwei
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

end of thread, other threads:[~2019-12-09 10:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-07 10:10 [f2fs-dev] Potential data corruption? =?gb18030?B?uuzJ1bXEzf67r7H9?=
2019-12-08  4:00 ` Chao Yu
2019-12-08 13:15   ` Hongwei Qin
2019-12-08 13:41     ` Chao Yu
2019-12-08 13:51     ` Gao Xiang via Linux-f2fs-devel
2019-12-09 10:46       ` Chao Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.