mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
STABLE14-keyring-pag-finduser-requires-glock-20070320
identical to the fix from chas@cmf.nrl.navy.mil (cherry picked from commit 97d8703809a9e6798b80696da6439ab0887046fb)
This commit is contained in:
parent
8ccd7b2193
commit
021b05f99d
@ -594,13 +594,18 @@ static void afs_pag_destroy(struct key *key)
|
||||
{
|
||||
afs_uint32 pag = key->payload.value;
|
||||
struct unixuser *pu;
|
||||
int locked = ISAFS_GLOCK();
|
||||
|
||||
if (!locked)
|
||||
AFS_GLOCK();
|
||||
pu = afs_FindUser(pag, -1, READ_LOCK);
|
||||
if (pu) {
|
||||
pu->ct.EndTimestamp = 0;
|
||||
pu->tokenTime = 0;
|
||||
afs_PutUser(pu, READ_LOCK);
|
||||
}
|
||||
if (!locked)
|
||||
AFS_GUNLOCK();
|
||||
}
|
||||
|
||||
struct key_type key_type_afs_pag =
|
||||
|
Loading…
x
Reference in New Issue
Block a user