diff options
| author | Tejun Heo <tj@kernel.org> | 2012-09-20 13:03:19 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2012-09-20 13:03:19 -0400 |
| commit | 7c6e72e46c9ea4a88f3f8ba96edce9db4bd48726 (patch) | |
| tree | 05f92ef6f69cfa5f0aac1401c4ca4d4fdc2a7ab7 /kernel | |
| parent | 70369b117a8fc5ac18a635ced23ee49f8e722e7b (diff) | |
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>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 0 insertions, 2 deletions
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, | |||
| 1070 | { | 1070 | { |
| 1071 | struct global_cwq *gcwq; | 1071 | struct global_cwq *gcwq; |
| 1072 | 1072 | ||
| 1073 | WARN_ON_ONCE(in_irq()); | ||
| 1074 | |||
| 1075 | local_irq_save(*flags); | 1073 | local_irq_save(*flags); |
| 1076 | 1074 | ||
| 1077 | /* try to steal the timer if it exists */ | 1075 | /* try to steal the timer if it exists */ |
