Re: [PATCH v2 2/2] sound: dummy, avoid race with timer

2015-01-19 Thread Takashi Iwai
At Mon, 19 Jan 2015 10:56:41 +0100, Jiri Slaby wrote: > > There is a race between timer and process contexts. Process context > does not disable irqs, so when a timer ticks inside process' critical > section, the system can deadlock. Fix this by a traditional _irqsave > variant of spin_lock. > >

[PATCH v2 2/2] sound: dummy, avoid race with timer

2015-01-19 Thread Jiri Slaby
There is a race between timer and process contexts. Process context does not disable irqs, so when a timer ticks inside process' critical section, the system can deadlock. Fix this by a traditional _irqsave variant of spin_lock. [v2] removed ->pointer change as it is called with BH off Signed-off