git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5cbdd5c
)
DEVEL15-viced-missing-lock-20071109
author
Dan Hyde
<drh@umich.edu>
Sat, 10 Nov 2007 00:37:50 +0000 (
00:37
+0000)
committer
Jeffrey Altman
<jaltman@secure-endpoints.com>
Sat, 10 Nov 2007 00:37:50 +0000 (
00:37
+0000)
FIXES 76713
Add missing lock that needs to protect an in use 'host' from having
HOSTDELETED added to the hostFlags and HWNO_INPROGRESS removed.
(cherry picked from commit
76c886b574b7d21db2557872be8af8e6ca549f34
)
src/viced/host.c
patch
|
blob
|
history
diff --git
a/src/viced/host.c
b/src/viced/host.c
index
4c59ac3
..
32761a9
100644
(file)
--- a/
src/viced/host.c
+++ b/
src/viced/host.c
@@
-1575,6
+1575,7
@@
h_GetHost_r(struct rx_connection *tcon)
host->interface ? uuid2 : "no_uuid"));
/* The host in the cache is not the host for this connection */
+ h_Lock_r(host);
host->hostFlags |= HOSTDELETED;
host->hostFlags &= ~HWHO_INPROGRESS;
h_Unlock_r(host);