From: Linus Torvalds Date: Tue, 10 Mar 2015 00:00:54 +0000 (-0700) Subject: Merge branch 'for-4.0-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq X-Git-Tag: firefly_0821_release~176^2~2187 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b695f31f4efd91c7cab97324ccbcb33201ebaaa2;p=firefly-linux-kernel-4.4.55.git Merge branch 'for-4.0-fixes' of git://git./linux/kernel/git/tj/wq Pull workqueue fix from Tejun Heo: "One fix patch for a subtle livelock condition which can happen on PREEMPT_NONE kernels involving two racing cancel_work calls. Whoever comes in the second has to wait for the previous one to finish. This was implemented by making the later one block for the same condition that the former would be (work item completion) and then loop and retest; unfortunately, depending on the wake up order, the later one could lock out the former one to finish by busy looping on the cpu. This is fixed by implementing explicit wait mechanism. Work item might not belong anywhere at this point and there's remote possibility of thundering herd problem. I originally tried to use bit_waitqueue but it didn't work for static work items on modules. It's currently using single wait queue with filtering wake up function and exclusive wakeup. If this ever becomes a problem, which is not very likely, we can try to figure out a way to piggy back on bit_waitqueue" * 'for-4.0-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: workqueue: fix hang involving racing cancel[_delayed]_work_sync()'s for PREEMPT_NONE --- b695f31f4efd91c7cab97324ccbcb33201ebaaa2