HomeFreeBSD

Push down INP_WLOCK slightly in tcp_ctloutput.

Description

Push down INP_WLOCK slightly in tcp_ctloutput.

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.

Reviewed by: bz
MFC after: 1 month
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D19740

Details

Provenance
jhbAuthored on
Reviewer
bz
Differential Revision
D19740: Push down INP_WLOCK slightly in tcp_ctloutput.
Parents
rS346359: When parsing command line stuff, treat tabs and spaces the same.
Branches
Unknown
Tags
Unknown