Re: [RFC][PATCH] PM / Sleep: Freeze filesystems during systemsuspend/hibernation

From: Jan Kara
Date: Mon Jan 30 2012 - 19:03:20 EST


On Tue 31-01-12 08:10:37, Nigel Cunningham wrote:
> Hi.
>
> On 31/01/12 08:05, Rafael J. Wysocki wrote:
> > On Monday, January 30, 2012, Jan Kara wrote:
> >> On Sat 28-01-12 14:45:49, Rafael J. Wysocki wrote:
> >>> + /*
> >>> + * Freeze in reverse order so filesystems depending on others are
> >>> + * frozen in the right order (eg. loopback on ext3).
> >>> + */
> >> Ho, hum, are you sure the order in super_blocks list is the one you need?
> >> Maybe it is but I'm not sure you are guaranteed it is.
> >
> > Well, is there any way I can get the right order?
>
> Jan, what's the case where the reverse of mount order might be the wrong
> order?
After some though, I'm not able to come up with a counterexample. As I
wrote to Rafael, let's at least document that we rely on some ordering of
super_blocks list.

Honza
--
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/