Add comment to accept1() that it should use getsock() instead of fgetsock()

to avoid additional mutex operations, and also to avoid use of soref/sorele
which are now not preferred.

MFC after:	3 months
This commit is contained in:
Robert Watson 2006-04-01 11:14:56 +00:00
parent 197b35d717
commit fa4c5373ce

View File

@ -283,6 +283,9 @@ done:
/*
* accept1()
* MPSAFE
*
* XXXRW: Use getsock() instead of fgetsock() here to avoid additional mutex
* operations due to soref()/sorele().
*/
static int
accept1(td, uap, compat)