]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-newvcache-can-fail-now-20060116
authorPeter Somogyi <psomogyi@gamax.hu>
Tue, 17 Jan 2006 05:00:21 +0000 (05:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 17 Jan 2006 05:00:21 +0000 (05:00 +0000)
FIXES 22260

allow newvcache to fail without ooping

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

(cherry picked from commit c19324c8574c66f18cd18f2df4beb486460205aa)

src/afs/VNOPS/afs_vnop_lookup.c

index 1d988b0c6f890b0cdbda176679e90728c541ff12..6b772a9a1e01f804ac7db41aad3c5ab1de50d4ac 100644 (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 */
            }