nfs4: Properly handle NFS4ERR_DELAY during node rename

This commit is contained in:
Pawel Dziepak
2012-08-17 03:32:57 +02:00
parent dee0fd8348
commit e422d059c8
@@ -374,6 +374,12 @@ NFS4Inode::RenameNode(Inode* from, Inode* to, const char* fromName,
continue;
}
// need to wait
if (reply.NFS4Error() == NFS4ERR_DELAY) {
snooze_etc(sSecToBigTime(5), B_SYSTEM_TIMEBASE, B_RELATIVE_TIMEOUT);
continue;
}
reply.PutFH();
reply.SaveFH();
reply.PutFH();