diff options
author | Eric Dumazet | 2010-10-01 18:15:08 +0200 |
---|---|---|
committer | David S. Miller | 2010-10-04 06:50:53 +0200 |
commit | a8c9486b816f74d4645144db9e8fa2f711c1fc4b (patch) | |
tree | 950214451e4bb2172cd9beb8f27a415664f77909 /include/linux | |
parent | ipmr: RCU conversion of mroute_sk (diff) | |
download | kernel-qcow2-linux-a8c9486b816f74d4645144db9e8fa2f711c1fc4b.tar.gz kernel-qcow2-linux-a8c9486b816f74d4645144db9e8fa2f711c1fc4b.tar.xz kernel-qcow2-linux-a8c9486b816f74d4645144db9e8fa2f711c1fc4b.zip |
ipmr: RCU protection for mfc_cache_array
Use RCU & RTNL protection for mfc_cache_array[]
ipmr_cache_find() is called under rcu_read_lock();
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mroute.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mroute.h b/include/linux/mroute.h index fa04b246c9ae..0fa7a3a874c8 100644 --- a/include/linux/mroute.h +++ b/include/linux/mroute.h @@ -213,6 +213,7 @@ struct mfc_cache { unsigned char ttls[MAXVIFS]; /* TTL thresholds */ } res; } mfc_un; + struct rcu_head rcu; }; #define MFC_STATIC 1 |