]> git.baikalelectronics.ru Git - kernel.git/commit
revert "cancel_delayed_work: use del_timer() instead of del_timer_sync()"
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 18 May 2007 07:36:42 +0000 (00:36 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 18 May 2007 15:17:17 +0000 (08:17 -0700)
commit11788a9a262188c8a1627b2dccf6bdefd8e0acec
treeb3ea5357ba2c9e9e201dbd1c62b215d87bfdf92a
parent25ac7d8c6737162bda5df6703e4d19c3ac0994e0
revert "cancel_delayed_work: use del_timer() instead of del_timer_sync()"

As pointed out by Jarek Poplawski, the patch

[WORKQUEUE]: cancel_delayed_work: use del_timer() instead of del_timer_sync()
commit: b117b4cd5b92567e480acbded75f36af73aae7b6

was wrong, it was merged by mistake after that.

From the changelog:

after this patch:
...
delayed_work_timer_fn->__queue_work() in progress.

The latter doesn't differ from the caller's POV,

it does make a difference if the caller calls flush_workqueue() after
cancel_delayed_work(), in that case flush_workqueue() can miss this
work_struct.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Jarek Poplawski <jarkao2@o2.pl>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/workqueue.h