diff options
| author | Jesse Gross <jesse@nicira.com> | 2010-12-04 11:50:53 -0800 |
|---|---|---|
| committer | Jesse Gross <jesse@nicira.com> | 2010-12-13 13:40:13 -0800 |
| commit | e1040c772fbebc3abe9e7222f9c540112c4dca81 (patch) | |
| tree | d5e014048d1656b1843599f2e62afc8b9b13920a /datapath/vport-patch.c | |
| parent | d3097efff7c612e25cbbcf4913c703a73b57e523 (diff) | |
| download | openvswitch-e1040c772fbebc3abe9e7222f9c540112c4dca81.tar.gz | |
datapath: Add usage of __rcu annotation.
Sparse can warn about incorrect usage of RCU via direct access to
points when used in conjuction with __rcu and CONFIG_SPARSE_RCU.
This adds the necessary annotations.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath/vport-patch.c')
| -rw-r--r-- | datapath/vport-patch.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/datapath/vport-patch.c b/datapath/vport-patch.c index d27509a16..8bb204bad 100644 --- a/datapath/vport-patch.c +++ b/datapath/vport-patch.c @@ -30,11 +30,8 @@ struct patch_vport { char peer_name[IFNAMSIZ]; struct hlist_node hash_node; - /* Protected by RCU. */ - struct vport *peer; - - /* Protected by RCU. */ - struct device_config *devconf; + struct vport __rcu *peer; + struct device_config __rcu *devconf; }; /* Protected by RTNL lock. */ |
