]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ip(6)_freemoptions: defer imo destruction to epoch callback task
authormmacy <mmacy@FreeBSD.org>
Sun, 20 May 2018 00:22:28 +0000 (00:22 +0000)
committermmacy <mmacy@FreeBSD.org>
Sun, 20 May 2018 00:22:28 +0000 (00:22 +0000)
commitce91e745ec49c10b6aec111187716599d35cfb36
treee763578a49b34c6d835c3b7a46fb016991228e6f
parentc893b00af3673609f433b203306e602ade824ee7
ip(6)_freemoptions: defer imo destruction to epoch callback task

Avoid the ugly unlock / lock of the inpcbinfo where we need to
figure out what kind of lock we hold by simply deferring the
operation to another context. (Also a small dependency for
converting the pcbinfo read lock to epoch)
sys/netinet/in_mcast.c
sys/netinet/in_pcb.c
sys/netinet/ip_var.h
sys/netinet6/in6_mcast.c
sys/netinet6/in6_var.h
sys/netinet6/ip6_var.h