tunnel: Drop spinlock around cache free.
authorJesse Gross <jesse@nicira.com>
Sat, 25 Dec 2010 03:16:20 +0000 (19:16 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 29 Dec 2010 18:30:09 +0000 (10:30 -0800)
commit9c150f6a7039218080e067e9955aac0f6a55a712
treec605c6048681d0a693544ab7a058a701e1b3aad7
parent4885254becfd531f8a24adb33f8c62c2f17debb0
tunnel: Drop spinlock around cache free.

We hold a spinlock when freeing the cache, since you're generally
supposed to do that when writing to RCU protected data.  However,
there's really no point in doing that here because the port has
already been removed from both the transmit and receive side
data structures and we've waited for an RCU grace period.  In
addition, we're about to free the port itself, which contains the
spinlock and will be in trouble if anyone else is trying to
access it.  For clarity, drop the spinlock.

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