mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
DEVEL15-linux-nfstrans-avoid-access-deadlock-20080409
LICENSE IPL10 avoid deadlocking in access while we're already holding locks as filldir is doing its work (cherry picked from commit 7faf596b439cce022cfa4b3174cd17a1f0a0901e)
This commit is contained in:
parent
1147707e75
commit
a35556b5ad
@ -224,12 +224,14 @@ afs_access(OSI_VC_DECL(avc), register afs_int32 amode,
|
||||
return code;
|
||||
}
|
||||
|
||||
if (vType(avc) != VDIR || !afs_InReadDir(avc)) {
|
||||
code = afs_VerifyVCache(avc, &treq);
|
||||
if (code) {
|
||||
afs_PutFakeStat(&fakestate);
|
||||
code = afs_CheckCode(code, &treq, 16);
|
||||
return code;
|
||||
}
|
||||
}
|
||||
|
||||
/* if we're looking for write access and we have a read-only file system, report it */
|
||||
if ((amode & VWRITE) && (avc->states & CRO)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user