From: Sabrina Dubroca Date: Wed, 10 Sep 2014 21:23:02 +0000 (+0200) Subject: ipv6: clean up anycast when an interface is destroyed X-Git-Tag: fixes-for-v3.18-merge-window~87^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=381f4dca48d23e155b936b86ccd3ff12f073cf0f;p=pandora-kernel.git ipv6: clean up anycast when an interface is destroyed If we try to rmmod the driver for an interface while sockets with setsockopt(JOIN_ANYCAST) are alive, some refcounts aren't cleaned up and we get stuck on: unregister_netdevice: waiting for ens3 to become free. Usage count = 1 If we LEAVE_ANYCAST/close everything before rmmod'ing, there is no problem. We need to perform a cleanup similar to the one for multicast in addrconf_ifdown(how == 1). Signed-off-by: Sabrina Dubroca Acked-by: Hannes Frederic Sowa Signed-off-by: David S. Miller --- Reading git-diff-tree failed