From: Oleg Nesterov Date: Wed, 9 May 2007 09:33:54 +0000 (-0700) Subject: flush_cpu_workqueue: don't flush an empty ->worklist X-Git-Tag: v2.6.22-rc1~247 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83c22520c51bf67529367e8237f95c03fe44e2da;p=pandora-kernel.git flush_cpu_workqueue: don't flush an empty ->worklist Now when we have ->current_work we can avoid adding a barrier and waiting for its completition when cwq's queue is empty. Note: this change is also useful if we change flush_workqueue() to also check the dead CPUs. Signed-off-by: Oleg Nesterov Cc: Srivatsa Vaddagiri Cc: Gautham Shenoy Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed