mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: "Huang, Ying" <ying.huang@intel.com>
Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>,
	Cornelia Huck <cornelia.huck@de.ibm.com>,
	Adrian Bunk <bunk@stusta.de>,
	david@lang.hm, David Miller <davem@davemloft.net>,
	"bunk@stusta.de; Duncan Sands" <duncan.sands@math.u-psud.fr>,
	Phillip Susi <psusi@cfl.rr.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] driver core: multithreaded probing - more parallelismcontrol
Date: Mon, 25 Jun 2007 01:16:24 -0700	[thread overview]
Message-ID: <20070625081624.GB23847@kroah.com> (raw)
In-Reply-To: <9D7649D18729DE4BB2BD7B494F7FEDC2180928@pdsmsx415.ccr.corp.intel.com>

On Sun, Jun 24, 2007 at 11:04:13PM +0800, Huang, Ying wrote:
> >From: Greg KH [mailto:greg@kroah.com]
> >I'm still not convinced that we need to add this kind of complexity to
> >the driver core, instead of just letting the individual driver
> >subsystems do this, if they want to do it.
> 
> It may appear not necessary that providing more multithreaded device
> probing in the driver core, but it seems more necessary that providing
> more parallel control in the driver core to make some device probing
> more single-threaded.
> 
> There does exist multithreaded device probing in current driver core
> implementation, supposing two devices are hot-plugged at the same time.

No, that is a bus-specific thing, and no bus that I know of supports
that at this time.

> But, many device drivers are written without this taken into account.

That's why no bus does this :)

> I think it may be better to make default device probing process more
> single-threaded in the driver core. The single-thread workqueue or some
> customized version of workqueue like that implemented by my patch can be
> used for this. The parallel control mechanism can be used to implement
> multithreaded device probing in needed subsystems too.

But remember, the individual busses already do this all in a single
thread anyway, nothing is needed in the driver core to do this.

thanks,

greg k-h

  reply	other threads:[~2007-06-25  8:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1182373258.30574.30.camel@caritas-dev.intel.com>
2007-06-20 15:09 ` [PATCH] driver core: multithreaded probing - more parallelism control Stefan Richter
2007-06-20 15:14   ` Stefan Richter
2007-06-21  9:38   ` Huang, Ying
2007-06-21  8:49     ` Stefan Richter
2007-06-21 13:51       ` Huang, Ying
2007-06-21 16:21         ` Stefan Richter
2007-06-22  9:52           ` Huang, Ying
2007-07-03 15:04             ` Cornelia Huck
2007-06-24  7:06 ` Greg KH
2007-06-24  9:38   ` Stefan Richter
2007-06-24 15:04   ` [PATCH] driver core: multithreaded probing - more parallelismcontrol Huang, Ying
2007-06-25  8:16     ` Greg KH [this message]
2007-07-03  9:33       ` Cornelia Huck

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=20070625081624.GB23847@kroah.com \
    --to=greg@kroah.com \
    --cc=bunk@stusta.de \
    --cc=cornelia.huck@de.ibm.com \
    --cc=davem@davemloft.net \
    --cc=david@lang.hm \
    --cc=duncan.sands@math.u-psud.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=psusi@cfl.rr.com \
    --cc=stefanr@s5r6.in-berlin.de \
    --cc=ying.huang@intel.com \
    /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

all inboxes | Powered by JetHome®