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 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"