]> git.baikalelectronics.ru Git - kernel.git/commit
HWPOISON: Allow schedule_on_each_cpu() from keventd
authorAndi Kleen <ak@linux.intel.com>
Wed, 14 Oct 2009 04:22:47 +0000 (06:22 +0200)
committerAndi Kleen <ak@linux.intel.com>
Mon, 19 Oct 2009 05:29:22 +0000 (07:29 +0200)
commitd983fe536313d4ed3e58e917f763ad4cbe2fff93
tree7b4744f01840c337506dbb24debe5e50ee76186e
parentb663fa4951087fb6ca04d9f5c3f287c7e203be77
HWPOISON: Allow schedule_on_each_cpu() from keventd

Right now when calling schedule_on_each_cpu() from keventd there
is a deadlock because it tries to schedule a work item on the current CPU
too. This happens via lru_add_drain_all() in hwpoison.

Just call the function for the current CPU in this case. This is actually
faster too.

Debugging with Fengguang Wu & Max Asbock

Signed-off-by: Andi Kleen <ak@linux.intel.com>
kernel/workqueue.c