]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE12-linux-sleep-wakeup-cleanup-20020624
authorChas Williams <chas@cmf.nrl.navy.mil>
Wed, 10 Jul 2002 22:04:45 +0000 (22:04 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 10 Jul 2002 22:04:45 +0000 (22:04 +0000)
commit25fb948e6cec6c8ba64c47feb3deeec168dd67d1
tree0d637be55c022977ed31209082c26d1dcfcc43c3
parent8209753eb1178695dd02027fab9c372cca5c2355
STABLE12-linux-sleep-wakeup-cleanup-20020624

"cleanup osi_sleep.c to remove some additional races.  this patches
removes AFS_GLOBAL_SUNLOCK and just uses that case to handle both
smp and non smp cases.  osi_TimedSleep always sleeps atleast 1 hz.
(it also always sleeps interruptibly -- you might get some extra
loops but this is better than the load average running away)
sleep_on's are replaced with the more appropriate add_waitq/schedule
sequence.  getevent is called after addevent since there is no
danger of GLOCK dropping.  getevent/addevent isnt re-merged since
osi_Wakeup doesnt create entries in the event table."

(cherry picked from commit 048543ade8eab56d47e5094fdb56bb7f49983dcf)
src/afs/LINUX/osi_sleep.c