mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
STABLE146-giveupallcallbacks-locking-20071121
LICENSE IPL10
FIXES 74708
Hold H_LOCK across calls into GiveUpAllCallbacks_r
(cherry picked from commit b0b3565b69
)
This commit is contained in:
parent
9c5b45d252
commit
c9263a258a
@ -6112,7 +6112,9 @@ common_GiveUpCallBacks(struct rx_call *acall, struct AFSCBFids *FidArray,
|
|||||||
(tcon->peer ? tcon->peer->host : 0)));
|
(tcon->peer ? tcon->peer->host : 0)));
|
||||||
errorCode = GetClient(tcon, &client);
|
errorCode = GetClient(tcon, &client);
|
||||||
if (!errorCode) {
|
if (!errorCode) {
|
||||||
|
H_LOCK;
|
||||||
DeleteAllCallBacks_r(client->host, 1);
|
DeleteAllCallBacks_r(client->host, 1);
|
||||||
|
H_UNLOCK;
|
||||||
PutClient(&client);
|
PutClient(&client);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user