Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c6e72e4 authored by Tejun Heo's avatar Tejun Heo
Browse files

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



e0aecdd8 ("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: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
parent 70369b11
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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 */