shared lock instead of exclusive in set_rootvnode

From: Roman Divacky <rdivacky_at_freebsd.org>
Date: Mon, 3 Mar 2008 21:09:46 +0100
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?

roman
Received on Mon Mar 03 2008 - 19:26:41 UTC

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