From: Jeffrey Altman Date: Wed, 21 Nov 2007 19:38:48 +0000 (+0000) Subject: STABLE14-giveupallcallbacks-locking-20071121 X-Git-Tag: openafs-stable-1_4_7pre1~161 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=874c2d1c74f5ceeb13da23f0438043d4d065d0d0;p=packages%2Fo%2Fopenafs.git STABLE14-giveupallcallbacks-locking-20071121 FIXES 74708 Hold H_LOCK across calls into GiveUpAllCallbacks_r (cherry picked from commit b0b3565b69b0b8fda46b25e7bd73c5116b32d83e) --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 695170ae6..105ee0ff6 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -6105,7 +6105,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 {