File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3579,12 +3579,6 @@ static int rescuer_thread(void *__rescuer)
35793579 }
35803580 }
35813581
3582- /*
3583- * Put the reference grabbed by send_mayday(). @pool won't
3584- * go away while we're still attached to it.
3585- */
3586- put_pwq (pwq );
3587-
35883582 /*
35893583 * Leave this pool. Notify regular workers; otherwise, we end up
35903584 * with 0 concurrency and stalling the execution.
@@ -3595,6 +3589,12 @@ static int rescuer_thread(void *__rescuer)
35953589
35963590 worker_detach_from_pool (rescuer );
35973591
3592+ /*
3593+ * Put the reference grabbed by send_mayday(). @pool might
3594+ * go away any time after it.
3595+ */
3596+ put_pwq_unlocked (pwq );
3597+
35983598 raw_spin_lock_irq (& wq_mayday_lock );
35993599 }
36003600
You can’t perform that action at this time.
0 commit comments