]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE146-giveupallcallbacks-locking-20071121
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 13 Dec 2007 20:59:29 +0000 (20:59 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 13 Dec 2007 20:59:29 +0000 (20:59 +0000)
LICENSE IPL10
FIXES 74708

Hold H_LOCK across calls into GiveUpAllCallbacks_r

(cherry picked from commit b0b3565b69b0b8fda46b25e7bd73c5116b32d83e)

src/viced/afsfileprocs.c

index e55e87b554626158dfd3d1a410ecdf8c3a200f76..6271ec179f298c3816cf1937c19cf26e0e8160c0 100644 (file)
@@ -6112,7 +6112,9 @@ common_GiveUpCallBacks(struct rx_call *acall, struct AFSCBFids *FidArray,
                 (tcon->peer ? tcon->peer->host : 0)));
        errorCode = GetClient(tcon, &client);
        if (!errorCode) {
+           H_LOCK;
            DeleteAllCallBacks_r(client->host, 1);
+           H_UNLOCK;
            PutClient(&client);
        }
     } else {