Skip to content

Commit

Permalink
workqueue: remove spurious WARN_ON_ONCE(in_irq()) from try_to_grab_pe…
Browse files Browse the repository at this point in the history
…nding()

e0aecdd ("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>
  • Loading branch information
Tejun Heo committed Sep 20, 2012
1 parent 70369b1 commit 7c6e72e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 7c6e72e

Please sign in to comment.