]> git.hungrycats.org Git - linux/commitdiff
[IPSEC]: Fix preempt race in flow_flush_cache.
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Jun 2003 10:09:30 +0000 (03:09 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Thu, 12 Jun 2003 10:09:30 +0000 (03:09 -0700)
net/core/flow.c

index f631056949d9a98c169d19c5888ef04dba8c6a56..2683550c2dc4edd35dfdfe25b2e1455b6ec6b3de 100644 (file)
@@ -267,8 +267,8 @@ void flow_cache_flush(void *object)
 
        down(&flow_flush_sem);
 
-       smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0);
        local_bh_disable();
+       smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0);
        flow_cache_flush_per_cpu(&info);
        local_bh_enable();