From: Frederic Weisbecker Date: Fri, 11 Oct 2013 15:41:11 +0000 (+0200) Subject: posix-timers: Use sighand lock instead of tasklist_lock on timer deletion X-Git-Tag: v3.14-rc1~169^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d7a1427e4ce545e949e9bccb75d0ca8d941d93c;p=pandora-kernel.git posix-timers: Use sighand lock instead of tasklist_lock on timer deletion Timer deletion doesn't need the tasklist lock. We need to protect against: * concurrent access to the lists p->cputime_expires and p->sighand->cputime_expires * task reaping that may also delete the timer list entry * timer firing We already hold the timer lock which protects us against concurrent timer firing. The rest only need the targets sighand to be locked. So hold it and drop the use of tasklist_lock there. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Oleg Nesterov Cc: Kosaki Motohiro Cc: Andrew Morton --- Reading git-diff-tree failed