2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 22:24:09 +08:00

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>
This commit is contained in:
Tejun Heo 2012-09-20 10:03:19 -07:00
parent 70369b117a
commit 7c6e72e46c

View File

@ -1070,8 +1070,6 @@ static int try_to_grab_pending(struct work_struct *work, bool is_dwork,
{ {
struct global_cwq *gcwq; struct global_cwq *gcwq;
WARN_ON_ONCE(in_irq());
local_irq_save(*flags); local_irq_save(*flags);
/* try to steal the timer if it exists */ /* try to steal the timer if it exists */