]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux26-allow-suspend-20040621
authorJeffrey Hutzelman <jhutz@cmu.edu>
Mon, 21 Jun 2004 20:30:18 +0000 (20:30 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 21 Jun 2004 20:30:18 +0000 (20:30 +0000)
FIXES 5208

necessary changes for swsusp to work.

src/afs/LINUX/osi_sleep.c
src/afs/sysincludes.h

index c9ca2e3d23365ab9ea9ef48bb6756ff32dfca61e..e7f7a68465fa66ee348f170387988e60306865fa 100644 (file)
@@ -193,6 +193,10 @@ afs_osi_SleepSig(void *event)
        AFS_ASSERT_GLOCK();
        AFS_GUNLOCK();
        schedule();
+#ifdef AFS_LINUX26_ENV
+       if (current->flags & PF_FREEZE)
+           refrigerator(PF_FREEZE);
+#endif
        AFS_GLOCK();
        if (signal_pending(current)) {
            retval = EINTR;
@@ -271,6 +275,10 @@ osi_TimedSleep(char *event, afs_int32 ams, int aintok)
            code = EINTR;
     } else
        schedule_timeout(ticks);
+#ifdef AFS_LINUX26_ENV
+    if (current->flags & PF_FREEZE)
+       refrigerator(PF_FREEZE);
+#endif
 
     AFS_GLOCK();
     remove_wait_queue(&evp->cond, &wait);
index 2146b7e584229f90b03e72432893ac1ec3292916..d12b2400e56a2b505f68cefad9f393689b5099dd 100644 (file)
@@ -64,6 +64,7 @@
 #include <linux/backing-dev.h>
 #include <linux/pagemap.h>
 #include <linux/namei.h>
+#include <linux/suspend.h>
 #endif
 /* Avoid conflicts with coda overloading AFS type namespace. Must precede
  * inclusion of uaccess.h.