mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
keyring-pag-finduser-requires-glock-20070320
identical to the fix from chas@cmf.nrl.navy.mil
This commit is contained in:
parent
c4183dbc1f
commit
97d8703809
@ -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…
Reference in New Issue
Block a user