mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +00:00
linux-nfstrans-avoid-access-deadlock-20080409
LICENSE IPL10 avoid deadlocking in access while we're already holding locks as filldir is doing its work
This commit is contained in:
parent
494568ea92
commit
7faf596b43
@ -224,11 +224,13 @@ afs_access(OSI_VC_DECL(avc), register afs_int32 amode,
|
||||
return code;
|
||||
}
|
||||
|
||||
code = afs_VerifyVCache(avc, &treq);
|
||||
if (code) {
|
||||
afs_PutFakeStat(&fakestate);
|
||||
code = afs_CheckCode(code, &treq, 16);
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user