Message ID | 1281989096.1926.1952.camel@laptop |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h index 24e5d01..a195feb 100644 --- a/include/linux/netfilter/x_tables.h +++ b/include/linux/netfilter/x_tables.h @@ -511,12 +511,21 @@ static inline void xt_info_rdunlock_bh(void) */ static inline void xt_info_wrlock(unsigned int cpu) { +#ifdef CONFIG_PROVE_LOCKING + /* + * XXX foo + */ + local_bh_disable(); +#endif spin_lock(&per_cpu(xt_info_locks, cpu).lock); } static inline void xt_info_wrunlock(unsigned int cpu) { spin_unlock(&per_cpu(xt_info_locks, cpu).lock); +#ifdef CONFIG_PROVE_LOCKING + local_bh_enable(); +#endif } /*