cvs commit: src/sys/compat/linux linux_util.c
Jeff Roberson
jroberson at chesapeake.net
Thu Jan 15 14:54:20 PST 2004
On Wed, 14 Jan 2004, Don Lewis wrote:
> On 14 Jan, Jeff Roberson wrote:
> > On Wed, 14 Jan 2004, Don Lewis wrote:
> >
> >> truckman 2004/01/14 14:38:03 PST
> >>
> >> FreeBSD src repository
> >>
> >> Modified files:
> >> sys/compat/linux linux_util.c
> >> Log:
> >> VOP_GETATTR() wants the vnode passed to it to be locked. Instead
> >> of adding the code to lock and unlock the vnodes and taking care
> >> to avoid deadlock, simplify linux_emul_convpath() by comparing the
> >> vnode pointers directly instead of comparing their va_fsid and
> >> va_fileid attributes. This allows the removal of the calls to
> >> VOP_GETATTR().
> >
> > I'm not sure that the vnode pointer compare works in the case of device
> > aliasing. Any comments?
>
> I believe you are correct, though one would hope that /compat/linux
> wasn't a device. The va_fsid and va_fileid test would not work either.
> For devices you want to look at va_rdev.
>
Ah, ok, sorry. I didn't bother to see what the path you were comparing
was.
Thanks,
Jeff
More information about the cvs-all
mailing list