summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds2012-10-25 01:33:22 +0200
committerLinus Torvalds2012-10-25 01:33:22 +0200
commitd579a35d0e488770ec6fbe0ce5efe8a797cada2f (patch)
treef556217c23857ed111240f03e599ff9c7d6e74f0 /kernel
parentMerge tag 'stable/for-linus-3.7-rc2-tag' of git://git.kernel.org/pub/scm/linu... (diff)
parentworkqueue: cancel_delayed_work() should return %false if work item is idle (diff)
downloadkernel-qcow2-linux-d579a35d0e488770ec6fbe0ce5efe8a797cada2f.tar.gz
kernel-qcow2-linux-d579a35d0e488770ec6fbe0ce5efe8a797cada2f.tar.xz
kernel-qcow2-linux-d579a35d0e488770ec6fbe0ce5efe8a797cada2f.zip
Merge branch 'for-3.7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
Pull workqueue fix from Tejun Heo: "This pull request contains one patch from Dan Magenheimer to fix cancel_delayed_work() regression introduced by its reimplementation using try_to_grab_pending(). The reimplementation made it incorrectly return %true when the work item is idle. There aren't too many consumers of the return value but it broke at least ramster." * 'for-3.7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: workqueue: cancel_delayed_work() should return %false if work item is idle
Diffstat (limited to 'kernel')
-rw-r--r--kernel/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index d951daa0ca9a..042d221d33cc 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -2982,7 +2982,7 @@ bool cancel_delayed_work(struct delayed_work *dwork)
set_work_cpu_and_clear_pending(&dwork->work, work_cpu(&dwork->work));
local_irq_restore(flags);
- return true;
+ return ret;
}
EXPORT_SYMBOL(cancel_delayed_work);