[PATCH v2] de_thread: Move notify_count write under lock

2015-02-27 Thread Kirill Tkhai
We set sig->notify_count = -1 between RELEASE and ACQUIRE operations: spin_unlock_irq(lock); ... if (!thread_group_leader(tsk)) { ... for (;;) { sig->notify_count = -1; write_lock_irq(_lock);

[PATCH v2] de_thread: Move notify_count write under lock

2015-02-27 Thread Kirill Tkhai
We set sig-notify_count = -1 between RELEASE and ACQUIRE operations: spin_unlock_irq(lock); ... if (!thread_group_leader(tsk)) { ... for (;;) { sig-notify_count = -1;