Freezing filesystems (Was Re: What's in store for 2008 for TuxOnIce?)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rafael J. Wysocki <rjw@...>
Cc: <suspend2-devel@...>, The place to get help! <suspend2-users@...>, LKML <linux-kernel@...>, pm list <linux-pm@...>
Date: Tuesday, January 1, 2008 - 7:54 pm

Hi.

Rafael J. Wysocki wrote:

Gidday :)


I guess that makes sense. I guess people can always be referred to LKML
for the issues where the appropriate person isn't on linux-pm.


Hmm. I've had too many things going through my little brain since then.
What I currently have is support for freezing fuse filesystems
separately. It looks like:

int freeze_processes(void)
{
        int error;

        printk("Stopping fuse filesystems.\n");
        freeze_filesystems(FS_FREEZER_FUSE);
        freezer_state = FREEZER_FILESYSTEMS_FROZEN;
        printk("Freezing user space processes ... ");
        error = try_to_freeze_tasks(FREEZER_USER_SPACE);
        if (error)
                goto Exit;
        printk("done.\n");

        sys_sync();
        printk("Stopping normal filesystems.\n");
        freeze_filesystems(FS_FREEZER_NORMAL);
        freezer_state = FREEZER_USERSPACE_FROZEN;
        printk("Freezing remaining freezable tasks ... ");
        error = try_to_freeze_tasks(FREEZER_KERNEL_THREADS);
        if (error)
                goto Exit;
        printk("done.");
        freezer_state = FREEZER_FULLY_ON;
 Exit:
        BUG_ON(in_atomic());
        printk("\n");
        return error;
}

(I'm not yet worrying about ext3 on fuse or such like, but it shouldn't
be hard to extend the model to do that).

Nigel
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What's in store for 2008 for TuxOnIce?, Nigel Cunningham, (Tue Jan 1, 6:36 pm)
Re: [Suspend2-devel] Reboot problem, Nigel Cunningham, (Tue Jan 1, 7:58 pm)
Re: [Suspend2-devel] Reboot problem, Christian Hesse, (Tue Jan 1, 8:24 pm)
Re: [Suspend2-devel] Reboot problem, Rafael J. Wysocki, (Wed Jan 2, 9:09 am)
Re: [Suspend2-devel] Reboot problem, Christian Hesse, (Wed Jan 2, 7:41 pm)
Re: What's in store for 2008 for TuxOnIce?, Rafael J. Wysocki, (Tue Jan 1, 7:21 pm)
Freezing filesystems (Was Re: What's in store for 2008 for T..., Nigel Cunningham, (Tue Jan 1, 7:54 pm)