[OpenAFS-devel] Re: [rt.central.org #130282] "all buffers locked" on master

Simon Wilkinson sxw@inf.ed.ac.uk
Sat, 29 Oct 2011 23:09:37 +0100


Completely untested, but from a quick read of the code, I think this =
should solve your problem...

S.

diff --git a/src/afs/VNOPS/afs_vnop_readdir.c =
b/src/afs/VNOPS/afs_vnop_readdir.c
index f0572b9..2c17244 100644
--- a/src/afs/VNOPS/afs_vnop_readdir.c
+++ b/src/afs/VNOPS/afs_vnop_readdir.c
@@ -914,6 +914,7 @@ afs_readdir(OSI_VC_DECL(avc), struct uio *auio, =
afs_ucred_t=20
 #endif /* AFS_SGI53_ENV */
       =20
        DRelease(&oldEntry, 0);
+       oldEntry =3D newEntry;
        ode =3D nde;
        AFS_UIO_SETOFFSET(auio, (afs_int32) ((us + =
afs_dir_NameBlobs(nde->name))
     }