diff options
author | David Decotigny <[email protected]> | 2013-01-11 14:31:36 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-01-11 14:54:54 -0800 |
commit | 896f97ea95c1d29c0520ee0766b66b7f64cb967c (patch) | |
tree | 9898ba669c2348294452fcfd5b7b81fe04cb072f /lib/mpi/mpi-inline.h | |
parent | 254adaa465c40151df11fc1f88f93e6e86eb61d4 (diff) |
lib: cpu_rmap: avoid flushing all workqueues
In some cases, free_irq_cpu_rmap() is called while holding a lock (eg
rtnl). This can lead to deadlocks, because it invokes
flush_scheduled_work() which ends up waiting for whole system workqueue
to flush, but some pending works might try to acquire the lock we are
already holding.
This commit uses reference-counting to replace
irq_run_affinity_notifiers(). It also removes
irq_run_affinity_notifiers() altogether.
[[email protected]: eliminate free_cpu_rmap, rename cpu_rmap_reclaim() to cpu_rmap_release(), propagate kref_put() retval from cpu_rmap_put()]
Signed-off-by: David Decotigny <[email protected]>
Reviewed-by: Ben Hutchings <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Or Gerlitz <[email protected]>
Acked-by: Amir Vadai <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions