Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6ef9d6
)
Fix my brown paper bag spinlock bug
author
phil
<phil>
Fri, 19 Nov 2004 07:55:12 +0000
(07:55 +0000)
committer
phil
<phil>
Fri, 19 Nov 2004 07:55:12 +0000
(07:55 +0000)
lustre/portals/libcfs/watchdog.c
patch
|
blob
|
history
diff --git
a/lustre/portals/libcfs/watchdog.c
b/lustre/portals/libcfs/watchdog.c
index
91a077c
..
844845a
100644
(file)
--- a/
lustre/portals/libcfs/watchdog.c
+++ b/
lustre/portals/libcfs/watchdog.c
@@
-138,12
+138,15
@@
static void lcw_cb(unsigned long data)
static int is_watchdog_fired(void)
{
unsigned long flags;
+ int rc;
if (test_bit(LCW_FLAG_STOP, &lcw_flags))
return 1;
spin_lock_irqsave(&lcw_pending_timers_lock, flags);
- return !list_empty(&lcw_pending_timers);
+ rc = !list_empty(&lcw_pending_timers);
+ spin_unlock_irqrestore(&lcw_pending_timers_lock, flags);
+ return rc;
}
static int lcw_dispatch_main(void *data)