[lkml]   [2011]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH 3/3] PM / Hibernate: Fix ioctl SNAPSHOT_S2RAM
    From: Rafael J. Wysocki <>

    The SNAPSHOT_S2RAM ioctl used for implementing the feature allowing
    one to suspend to RAM after creating a hibernation image is currently
    broken, because it doesn't clear the "ready" flag in the struct
    snapshot_data object handled by it. As a result, the
    SNAPSHOT_UNFREEZE doesn't work correctly after SNAPSHOT_S2RAM has
    returned and the user space hibernate task cannot thaw the other
    processes as appropriate. Make SNAPSHOT_S2RAM clear data->ready
    to fix this problem.

    Signed-off-by: Rafael J. Wysocki <>
    kernel/power/user.c | 1 +
    1 file changed, 1 insertion(+)

    Index: linux-2.6/kernel/power/user.c
    --- linux-2.6.orig/kernel/power/user.c
    +++ linux-2.6/kernel/power/user.c
    @@ -381,6 +381,7 @@ static long snapshot_ioctl(struct file *
    error = suspend_devices_and_enter(PM_SUSPEND_MEM);
    + data->ready = 0;


     \ /
      Last update: 2011-05-07 00:35    [W:0.020 / U:6.184 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site