From: Tejun Heo <tj@kernel.org>
Date: Thu, 20 Sep 2012 17:03:19 +0000 (-0700)
Subject: workqueue: remove spurious WARN_ON_ONCE(in_irq()) from try_to_grab_pending()
X-Git-Tag: firefly_0821_release~3680^2~1954^2
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7c6e72e46c9ea4a88f3f8ba96edce9db4bd48726;p=firefly-linux-kernel-4.4.55.git

workqueue: remove spurious WARN_ON_ONCE(in_irq()) from try_to_grab_pending()

e0aecdd874 ("workqueue: use irqsafe timer for delayed_work") made
try_to_grab_pending() safe to use from irq context but forgot to
remove WARN_ON_ONCE(in_irq()).  Remove it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
---

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 4f5c61f8b0e7..143fd8c751f4 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -1070,8 +1070,6 @@ static int try_to_grab_pending(struct work_struct *work, bool is_dwork,
 {
 	struct global_cwq *gcwq;
 
-	WARN_ON_ONCE(in_irq());
-
 	local_irq_save(*flags);
 
 	/* try to steal the timer if it exists */