From: Yogesh Lal <ylal@codeaurora.org>
To: gregkh@linuxfoundation.org, rafael@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
Yogesh Lal <ylal@codeaurora.org>
Subject: [PATCH] driver core: Use unbound workqueue for deferred probes
Date: Wed, 24 Feb 2021 17:25:49 +0530 [thread overview]
Message-ID: <1614167749-22005-1-git-send-email-ylal@codeaurora.org> (raw)
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
next reply other threads:[~2021-02-24 11:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-24 11:55 Yogesh Lal [this message]
2021-02-24 12:43 ` [PATCH] driver core: Use unbound workqueue for deferred probes 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1614167749-22005-1-git-send-email-ylal@codeaurora.org \
--to=ylal@codeaurora.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox