From: Oleg Nesterov Date: Mon, 16 Jul 2007 06:41:44 +0000 (-0700) Subject: make cancel_xxx_work_sync() return a boolean X-Git-Tag: v2.6.23-rc1~813 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f1f642e2f092e37eb9038060eb0100c44f55a11;p=pandora-kernel.git make cancel_xxx_work_sync() return a boolean Change cancel_work_sync() and cancel_delayed_work_sync() to return a boolean indicating whether the work was actually cancelled. A zero return value means that the work was not pending/queued. Without that kind of change it is not possible to avoid flush_workqueue() sometimes, see the next patch as an example. Also, this patch unifies both functions and kills the (unlikely) busy-wait loop. Signed-off-by: Oleg Nesterov Acked-by: Jarek Poplawski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed