Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 2008 21:09:46 +0100
From:      Roman Divacky <rdivacky@freebsd.org>
To:        current@freebsd.org
Subject:   shared lock instead of exclusive in set_rootvnode
Message-ID:  <20080303200946.GA79061@freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080303200946.GA79061>