/*
* Anycast support for IPv6
- * Linux INET6 implementation
+ * Linux INET6 implementation
*
* Authors:
* David L Stevens (dlstevens@us.ibm.com)
#include <linux/string.h>
#include <linux/socket.h>
#include <linux/sockios.h>
-#include <linux/sched.h>
#include <linux/net.h>
#include <linux/in6.h>
#include <linux/netdevice.h>
int onlink;
onlink = 0;
- read_lock(&addrconf_lock);
+ rcu_read_lock();
idev = __in6_dev_get(dev);
if (idev) {
read_lock_bh(&idev->lock);
}
read_unlock_bh(&idev->lock);
}
- read_unlock(&addrconf_lock);
+ rcu_read_unlock();
return onlink;
}
in6_dev_put(idev);
return ret;
}
-
+
/*
* check if the interface has this anycast address
*/
break;
}
read_unlock_bh(&idev->lock);
+ in6_dev_put(idev);
}
return im;
}
goto out;
}
-static struct file_operations ac6_seq_fops = {
+static const struct file_operations ac6_seq_fops = {
.owner = THIS_MODULE,
.open = ac6_seq_open,
.read = seq_read,