aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctputil.c
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2010-06-06 19:24:32 +0000
committerRandall Stewart <rrs@FreeBSD.org>2010-06-06 19:24:32 +0000
commit0c7dc84076b64ef74c24f04400d572f75ef61bb4 (patch)
tree58e7f19bab4f9e4af9f486fa1a747f48b15f5ffa /sys/netinet/sctputil.c
parent4f24f88ebb6d8128f9e241fa6d051a371484acfb (diff)
downloadsrc-0c7dc84076b64ef74c24f04400d572f75ef61bb4.tar.gz
src-0c7dc84076b64ef74c24f04400d572f75ef61bb4.zip
Ok, yet another bug in killing off all the hundreds
of apitesters.. Basically we end up with attempting to destroy a lock thats contended on. A cookie echo arrives at the same time that the close is happening. The close gets the lock but the cookie echo has already passed the check for the gone flag and is then locked waiting on the create lock.. when we go to destroy it bam. For now we do the timer destroy for all calls to close.. We can probably optimize this later so that we check whats being contended on and if there is contention then do the timer thing. but this is probably safest since the inp has been removed from all lists and references and only the timer can find it.. once the locks are released all other places will instantly see the GONE flag and bail (thats what the change in sctp_input is one place that was lacking the bail code). MFC after: 1 week
Notes
Notes: svn path=/head/; revision=208878
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r--sys/netinet/sctputil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index a6fb7b37ebdf..dea903603a2a 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -1898,7 +1898,7 @@ sctp_timeout_handler(void *t)
SCTP_INP_DECR_REF(inp);
sctp_timer_stop(SCTP_TIMER_TYPE_INPKILL, inp, NULL, NULL, SCTP_FROM_SCTPUTIL + SCTP_LOC_3);
sctp_inpcb_free(inp, SCTP_FREE_SHOULD_USE_ABORT,
- SCTP_CALLED_DIRECTLY_NOCMPSET);
+ SCTP_CALLED_FROM_INPKILL_TIMER);
inp = NULL;
goto out_no_decr;
default: