mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +00:00
linux26-allow-suspend-20040621
FIXES 5208 necessary changes for swsusp to work.
This commit is contained in:
parent
25a1518f04
commit
d9765e5bd5
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user