Re: shared lock instead of exclusive in set_rootvnode

From: John Baldwin <jhb_at_freebsd.org>
Date: Wed, 2 Apr 2008 16:04:47 -0400
On Sunday 30 March 2008 05:49:47 pm Roman Divacky wrote:
> On Tue, Mar 04, 2008 at 01:15:42PM +0200, Kostik Belousov wrote:
> > On Mon, Mar 03, 2008 at 09:09:46PM +0100, Roman Divacky wrote:
> > > hi
> > >
> > > in set_rootvnode() there is
> > >
> > > p->p_fd->fd_cdir = rootvnode;
> > > p->p_fd->fd_rdir = rootvnode;
> > >
> > > protected just by FILEDESC_SLOCK(), I dont think this is correct
> > > although it might be benign as this is used only during boot.
> > >
> > > still, if it's not correct it should be fixed
> > >
> > > comments?
> >
> > Seems right. Did you boot with patched kernel ?
>
> I've been running with this patch for a month... is it time to commit
> this?

Go for it.

-- 
John Baldwin
Received on Wed Apr 02 2008 - 18:06:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:29 UTC