# Re: \[PATCH RT 3/4\] net: netfilter: Serialize xt\_write\_recseq sections on RT

- From: Peter LaDow \<hidden\>
- Date: 2012-11-02 00:36:31 
- List: linux-rt-users
- Page: https://ratatoskr.run/linux-rt-users/2012/11/3950563
- Thread: https://ratatoskr.run/linux-rt-users/2012/10/3949144/t.md

```text
On Tue, Oct 30, 2012 at 5:33 PM, Steven Rostedt [ref] wrote:
> From: Thomas Gleixner <redacted>
>
> The netfilter code relies only on the implicit semantics of
> local_bh_disable() for serializing wt_write_recseq sections. RT breaks
> that and needs explicit serialization here.
>
> Reported-by: Peter LaDow <redacted>
> Signed-off-by: Thomas Gleixner <redacted>

> diff --git a/include/linux/locallock.h b/include/linux/locallock.h
> index f1804a3..a5eea5d 100644

> diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
> index 32cddf7..bed90da2 100644

> diff --git a/net/netfilter/core.c b/net/netfilter/core.c
> index 899b71c..5db16ea 100644

I'm have a setup running 3.0.48-rt72.  It's been running about 8 hours
so far, and tomorrow I'll know if there's been any problems.  I'm
confident things will be fine tomorrow, and at that time I'll be glad
to attach a Tested-by tag.

Thanks,
Pete
```
