Page MenuHomeFreeBSD

Remove unnecessary tcp state transition call.
ClosedPublic

Authored by hiren on Aug 21 2015, 9:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 31 2024, 8:13 AM
Unknown Object (File)
May 12 2024, 7:37 PM
Unknown Object (File)
May 11 2024, 7:43 AM
Unknown Object (File)
May 11 2024, 7:43 AM
Unknown Object (File)
May 11 2024, 1:13 AM
Unknown Object (File)
May 11 2024, 1:13 AM
Unknown Object (File)
May 10 2024, 8:42 PM
Unknown Object (File)
May 1 2024, 6:28 AM

Details

Summary

This call now also tracks state transitions for DTRACE and without this change
it'd report state transition from TCPS_CLOSING to TCPS_CLOSING.

Diff Detail

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

Event Timeline

hiren retitled this revision from to Remove unnecessary tcp state transition call..
hiren updated this object.
hiren edited the test plan for this revision. (Show Details)
hiren added reviewers: np, markj, rwatson.
hiren added a subscriber: network.

Hum, I am failing to understand/find where we set state to TCPS_CLOSED before we enter tcp_usrclosed().

markj edited edge metadata.
In D3451#70430, @hiren wrote:

Hum, I am failing to understand/find where we set state to TCPS_CLOSED before we enter tcp_usrclosed().

It's not clear to me either.

This revision is now accepted and ready to land.Aug 23 2015, 5:07 PM
markj requested changes to this revision.Aug 24 2015, 7:54 PM
markj edited edge metadata.

Oops. I just took a second look and noticed the FALLTHROUGH above. I presume that's the reason for the assignment.

It looks like it should be ok to move the call up, right before the fallthrough.

This revision now requires changes to proceed.Aug 24 2015, 7:54 PM
hiren edited edge metadata.

Good catch by @markj.
Move the call to track TCPS_LISTEN -> TCPS_CLOSED transition correctly.

hiren edited edge metadata.

Remove unrelated tcp_timer.c changes.

In D3451#71006, @markj wrote:

Oops. I just took a second look and noticed the FALLTHROUGH above. I presume that's the reason for the assignment.

It looks like it should be ok to move the call up, right before the fallthrough.

Good catch. :-)

I am still unsure of how we handle TCPS_CLOSE correctly. i.e in my instrumentation, I never see state transition to closed state.
May be @rwatson can help here.

Any objection to this commit?

markj edited edge metadata.

Looks ok to me.

This revision is now accepted and ready to land.Sep 15 2015, 5:19 AM
This revision was automatically updated to reflect the committed changes.