]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'for-3.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Aug 2013 00:02:48 +0000 (17:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Aug 2013 00:02:48 +0000 (17:02 -0700)
commitf3ec11fc3547990134acb9b2f7af4a1bc8d9cd15
treea02fd3216941b71ea58c6b57f84344be64168301
parentbef39f74829f4da5469c310ef83817eb275620de
parent879e0caa93b0cad702e6b2c997ae8771358bcd13
Merge branch 'for-3.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq

Pull workqueue fix from Tejun Heo:
 "This contains one fix which could lead to system-wide lockup on
  !PREEMPT kernels.  It's very late in the cycle but this definitely is
  a -stable material.

  The problem is that workqueue worker tasks may process unlimited
  number of work items back-to-back without every yielding inbetween.
  This usually isn't noticeable but a work item which re-queues itself
  waiting for someone else to do something can deadlock with
  stop_machine.  stop_machine will ensure nothing else happens on all
  other cpus and the requeueing work item will reqeueue itself
  indefinitely without ever yielding and thus preventing the CPU from
  entering stop_machine.

  Kudos to Jamie Liu for spotting and diagnosing the problem.  This can
  be trivially fixed by adding cond_resched() after processing each work
  item"

* 'for-3.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
  workqueue: cond_resched() after processing each work item