svn commit: r272596 - head/sys/fs/devfs
John Baldwin
jhb at freebsd.org
Mon Oct 6 16:38:11 UTC 2014
On Monday, October 06, 2014 06:20:36 AM Mateusz Guzik wrote:
> Author: mjg
> Date: Mon Oct 6 06:20:35 2014
> New Revision: 272596
> URL: https://svnweb.freebsd.org/changeset/base/272596
>
> Log:
> devfs: don't take proctree_lock unconditionally in devfs_close
>
> MFC after: 1 week
Just for my sanity:
What keeps td->td_proc->p_session static in this case so that it is safe to
dereference it? Specifically, if you are preempted after reading p_session
but before you then read s_ttyvp, what prevents a race with another thread
changing the session of td->td_proc?
--
John Baldwin
More information about the svn-src-all
mailing list