From: Simon Wilkinson Date: Sat, 10 Jul 2010 19:30:31 +0000 (+0100) Subject: Linux: Actually use freezer compatibility func X-Git-Tag: openafs-devel-1_5_76~151 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1701535fae6a78b72a2b637365a0bf2d77803b5b;p=packages%2Fo%2Fopenafs.git 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 --- diff --git a/src/afs/LINUX/osi_sleep.c b/src/afs/LINUX/osi_sleep.c index 992f47aac..b246f0a42 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);