]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE146-viced-missing-lock-20071109
authorDan Hyde <drh@umich.edu>
Thu, 13 Dec 2007 20:55:42 +0000 (20:55 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 13 Dec 2007 20:55:42 +0000 (20:55 +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

index 9476f9854e9189faf106d67e69b6dd9d33f537ca..3b408e88e20c9a31a6e9099f2c130fd6a33451d6 100644 (file)
@@ -1558,6 +1558,7 @@ h_GetHost_r(struct rx_connection *tcon)
                     host->interface ? uuid2 : ""));
 
            /* 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);