Re: shared lock instead of exclusive in set_rootvnode

From: Kostik Belousov <kostikbel_at_gmail.com>
Date: Tue, 4 Mar 2008 13:15:42 +0200
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 ?

Received on Tue Mar 04 2008 - 10:15:53 UTC

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