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:
parent
197b35d717
commit
fa4c5373ce
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user