From: Theodore Ts'o Date: Mon, 4 Mar 2013 16:59:12 +0000 (-0500) Subject: random: fix locking dependency with the tasklist_lock X-Git-Tag: v3.9-rc2~12^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b980955236922ae6106774511c5c05003d3ad225;p=pandora-kernel.git random: fix locking dependency with the tasklist_lock Commit 6133705494bb introduced a circular lock dependency because posix_cpu_timers_exit() is called by release_task(), which is holding a writer lock on tasklist_lock, and this can cause a deadlock since kill_fasync() gets called with nonblocking_pool.lock taken. There's no reason why kill_fasync() needs to be taken while the random pool is locked, so move it out to fix this locking dependency. Signed-off-by: "Theodore Ts'o" Reported-by: Russ Dill Cc: stable@kernel.org --- Reading git-diff-tree failed