Re: [PATCH char-misc-next] UIO: Fix concurrency issue

2013-06-21 Thread Pavel Machek
On Thu 2013-06-20 16:36:00, Vitalii Demianets wrote: > In a SMP case there was a race condition issue between > uio_pdrv_genirq_irqcontrol() running on one CPU and irq handler on another > CPU. Fix it by spin_locking shared resources access inside irq handler. > Also: > - Change disable_irq to

[PATCH char-misc-next] UIO: Fix concurrency issue

2013-06-20 Thread Vitalii Demianets
In a SMP case there was a race condition issue between uio_pdrv_genirq_irqcontrol() running on one CPU and irq handler on another CPU. Fix it by spin_locking shared resources access inside irq handler. Also: - Change disable_irq to disable_irq_nosync to avoid deadlock, because disable_irq wait