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)
Tue, May 7, 5:23 PM
Unknown Object (File)
Feb 26 2024, 5:15 PM
Unknown Object (File)
Feb 10 2024, 9:36 PM
Unknown Object (File)
Feb 2 2024, 10:49 PM
Unknown Object (File)
Jan 4 2024, 4:31 PM
Unknown Object (File)
Dec 31 2023, 6:41 PM
Unknown Object (File)
Dec 20 2023, 7:00 AM
Unknown Object (File)
Sep 7 2023, 11:45 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