From 1701535fae6a78b72a2b637365a0bf2d77803b5b Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sat, 10 Jul 2010 20:30:31 +0100 Subject: [PATCH] Linux: Actually use freezer compatibility func We were calling try_to_sleep, rather than afs_try_to_sleep. Whilst try_to_sleep is present in all modern Linux kernels, on some older systems we need to fall back to our own implementation, which is what the afs_try_to_sleep function should do, but it can only do so if we call it. Change-Id: I900e50cf2754535e676d582bd3da82f1833bde52 Reviewed-on: http://gerrit.openafs.org/2384 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/LINUX/osi_sleep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afs/LINUX/osi_sleep.c b/src/afs/LINUX/osi_sleep.c index 992f47aac3..b246f0a425 100644 --- a/src/afs/LINUX/osi_sleep.c +++ b/src/afs/LINUX/osi_sleep.c @@ -181,7 +181,7 @@ afs_osi_SleepSig(void *event) AFS_ASSERT_GLOCK(); AFS_GUNLOCK(); schedule(); - try_to_freeze(); + afs_try_to_freeze(); AFS_GLOCK(); if (signal_pending(current)) { @@ -261,7 +261,7 @@ afs_osi_TimedSleep(void *event, afs_int32 ams, int aintok) code = EINTR; } - try_to_freeze(); + afs_try_to_freeze(); AFS_GLOCK(); remove_wait_queue(&evp->cond, &wait);