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;
|
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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user