STABLE14-newvcache-can-fail-now-20060116

FIXES 22260

allow newvcache to fail without ooping

sort of nasty, if you want more vcaches, say so.


(cherry picked from commit c19324c8574c66f18cd18f2df4beb486460205aa)
This commit is contained in:
Peter Somogyi 2006-01-17 05:00:21 +00:00 committed by Derrick Brashear
parent 674823d88c
commit eb72bfe0b2

View File

@ -723,8 +723,10 @@ afs_DoBulkStat(struct vcache *adp, long dirCookie, struct vrequest *areqp)
}
if (!tvcp)
{
DRelease((struct buffer *)dirEntryp, 0);
ReleaseReadLock(&dcp->lock);
ReleaseReadLock(&adp->lock);
afs_PutDCache(dcp);
goto done; /* can happen if afs_NewVCache fails */
}