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:
Jeffrey Hutzelman 2008-04-09 14:38:47 +00:00 committed by Derrick Brashear
parent 494568ea92
commit 7faf596b43

View File

@ -224,11 +224,13 @@ afs_access(OSI_VC_DECL(avc), register afs_int32 amode,
return code; return code;
} }
code = afs_VerifyVCache(avc, &treq); if (vType(avc) != VDIR || !afs_InReadDir(avc)) {
if (code) { code = afs_VerifyVCache(avc, &treq);
afs_PutFakeStat(&fakestate); if (code) {
code = afs_CheckCode(code, &treq, 16); afs_PutFakeStat(&fakestate);
return code; 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 we're looking for write access and we have a read-only file system, report it */