tunneling: Add checks for header cache lock.
authorJesse Gross <jesse@nicira.com>
Sun, 5 Dec 2010 20:36:36 +0000 (12:36 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 13 Dec 2010 21:42:33 +0000 (13:42 -0800)
commit758a12d2d92bfadbebcc65506780c8be68ecf3ac
tree8f42e90907f0af83d18bc27a8b1c7794c84788d4
parente33adfd0cea19a8a4dab5cdbe80e2fd636e48374
tunneling: Add checks for header cache lock.

When updating the tunnel header cache, we need to hold a lock to
protect against concurrent access.  This adds annotations to
make sparse happy when we access the data without rcu_read_lock
and enables lockdep to verify that we have the correct lock.

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