tunneling: Add missing rcu_dereference() to cache cleaner.
authorJesse Gross <jesse@nicira.com>
Sun, 5 Dec 2010 20:03:49 +0000 (12:03 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 10 Dec 2010 01:43:36 +0000 (17:43 -0800)
commit1e71f10f38d2ad09ee854b7e926a63744a1883e1
tree66ac0acd725eafa076292b9ed60b94d811cf72d9
parent6d6266e6c9e387052e34f8434ee1d80690bff75d
tunneling: Add missing rcu_dereference() to cache cleaner.

The cleaner for the header caching accesses the tunnel port table
without holding any locks.  However, it doesn't have a read memory
barrier, so there is no guarantee that the contents of the table
have made it to the right CPU.

Found by sparse.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/tunnel.c