Date: Thu, 17 Apr 2003 15:30:43 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_prf.c Message-ID: <200304172230.h3HMUhmI078152@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2003/04/17 15:30:43 PDT
FreeBSD src repository
Modified files:
sys/kern subr_prf.c
Log:
Don't assume that p_session hasn't changed out from under us after unlocking
the process and session. Instead, cache a true reference to the session
when we do the hold and release our reference on that session. This avoids
the need for the proc lock when dropping the reference.
Revision Changes Path
1.100 +11 -12 src/sys/kern/subr_prf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304172230.h3HMUhmI078152>
