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

Marc Dionne marc.c.dionne@gmail.com
Sat, 29 Oct 2011 18:51:55 -0400


On Sat, Oct 29, 2011 at 18:09, Simon Wilkinson <sxw@inf.ed.ac.uk> wrote:
> Completely untested, but from a quick read of the code, I think this shou=
ld solve your problem...
>
> S.
>
> diff --git a/src/afs/VNOPS/afs_vnop_readdir.c b/src/afs/VNOPS/afs_vnop_re=
addir.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_u=
cred_t
> =A0#endif /* AFS_SGI53_ENV */
>
> =A0 =A0 =A0 =A0DRelease(&oldEntry, 0);
> + =A0 =A0 =A0 oldEntry =3D newEntry;
> =A0 =A0 =A0 =A0ode =3D nde;
> =A0 =A0 =A0 =A0AFS_UIO_SETOFFSET(auio, (afs_int32) ((us + afs_dir_NameBlo=
bs(nde->name))
> =A0 =A0 }

s/newEntry/nextEntry/

Marc