]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Put r284245 back in place: If at first this fix was seen as a temporary
authorJulien Charbon <jch@FreeBSD.org>
Sun, 30 Aug 2015 13:44:39 +0000 (13:44 +0000)
committerJulien Charbon <jch@FreeBSD.org>
Sun, 30 Aug 2015 13:44:39 +0000 (13:44 +0000)
commitd6de19ac2f8b1c4896cb2193f321600ea219507e
tree8618c660f10d8a8d3515ccbb233084d6563b3eb7
parent42404113e6a606514cea5c1365415c497d2a5772
Put r284245 back in place:  If at first this fix was seen as a temporary
workaround for a callout(9) issue, it turns out it is instead the right
way to use callout in mpsafe mode without using callout_drain().

r284245 commit message:

Fix a callout race condition introduced in TCP timers callouts with r281599.
In TCP timer context, it is not enough to check callout_stop() return value
to decide if a callout is still running or not, previous callout_reset()
return values have also to be checked.

Differential Revision: https://reviews.freebsd.org/D2763
sys/netinet/tcp_timer.c
sys/netinet/tcp_timer.h