Searched hist:b980955236922ae6106774511c5c05003d3ad225 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/char/ |
H A D | random.c | diff b980955236922ae6106774511c5c05003d3ad225 Mon Mar 04 17:59:12 CET 2013 Theodore Ts'o <tytso@mit.edu> 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" <tytso@mit.edu> Reported-by: Russ Dill <Russ.Dill@gmail.com> Cc: stable@kernel.org
|