# Re: \[PATCH 20/40\] mn10300: Use set\_current\_blocked() and block\_sigmask()

- From: Matt Fleming \<hidden\>
- Date: 2012-02-15 11:50:04 
- List: linux-arch
- Page: https://ratatoskr.run/linux-arch/2012/02/3822680
- Thread: https://ratatoskr.run/linux-arch/2012/02/3822231/t.md

```text
On Tue, 2012-02-14 at 18:30 +0000, David Howells wrote:
> Matt Fleming [ref] wrote:
> 
> > > Can this line create a race, now that it's not protected by a lock?  It is
> > > possible for current->blocked to get altered by another thread.
> > 
> > ->blocked can only ever be altered by current, not another thread. See
> > the following comment from sigprocmask() in kernel/signal.c,
> 
> Okay, I've managed to convince myself.  Feel free to my Acked-by to the
> MN10300 and FRV patches.

Thanks! I think Andrew is picking these up, unless you want to take them
through the arch trees?

-- 
Matt Fleming, Intel Open Source Technology Center
```
