shared lock instead of exclusive in set_rootvnode

Roman Divacky rdivacky at freebsd.org
Mon Mar 3 20:26:41 UTC 2008


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



More information about the freebsd-current mailing list