Page MenuHomeFreeBSD

Push down INP_WLOCK slightly in tcp_ctloutput.
ClosedPublic

Authored by jhb on Mar 28 2019, 9:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 21, 8:36 PM
Unknown Object (File)
Tue, Aug 18, 5:43 AM
Unknown Object (File)
Sat, Aug 15, 12:50 PM
Unknown Object (File)
Sat, Aug 15, 2:24 AM
Unknown Object (File)
Wed, Aug 12, 4:22 PM
Unknown Object (File)
Wed, Aug 12, 2:17 PM
Unknown Object (File)
Sun, Aug 9, 7:32 PM
Unknown Object (File)
Sun, Aug 9, 7:32 PM
Subscribers

Details

Summary

The inp lock is not needed for testing the V6 flag as that flag is set
once when the inp is created and never changes. For non-TCP socket
options the lock is immediately dropped after checking that flag.
This just pushes the lock down to only be acquired for TCP socket
options.

This isn't a hot-path, more a cosmetic cleanup I noticed while reading
the code.

Test Plan
  • tested as part of larger patch by Drew (and myself in light testing)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable