linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] driver core: Use unbound workqueue for deferred probes
@ 2021-02-24 11:55 Yogesh Lal
  2021-02-24 12:43 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Yogesh Lal @ 2021-02-24 11:55 UTC (permalink / raw)
  To: gregkh, rafael; +Cc: linux-kernel, linux-arm-msm, Yogesh Lal

Queue deferred driver probes on unbounded workqueue, to allow
scheduler better manage scheduling of long running probes.

Signed-off-by: Yogesh Lal <ylal@codeaurora.org>
---
 drivers/base/dd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 9179825f..c9c174a 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -182,7 +182,7 @@ static void driver_deferred_probe_trigger(void)
 	 * Kick the re-probe thread.  It may already be scheduled, but it is
 	 * safe to kick it again.
 	 */
-	schedule_work(&deferred_probe_work);
+	queue_work(system_unbound_wq, &deferred_probe_work);
 }
 
 /**
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
member of the Code Aurora Forum, hosted by The Linux Foundation


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-23  9:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 11:55 [PATCH] driver core: Use unbound workqueue for deferred probes Yogesh Lal
2021-02-24 12:43 ` Greg KH
2021-02-25 10:33   ` Yogesh Lal
2021-02-25 11:44     ` Greg KH
2021-03-15 10:45       ` Yogesh Lal
2021-03-23  9:50         ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).