public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Christoph Hellwig <hch@infradead.org>, Greg KH <greg@kroah.com>,
	Patrick Mochel <mochel@digitalimplant.org>,
	Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Don't use a klist for drivers' set-of-devices
Date: Thu, 11 Aug 2005 15:29:46 -0500	[thread overview]
Message-ID: <d120d50005081113294dbb4961@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0508111540420.6745-100000@iolanthe.rowland.org>

On 8/11/05, Alan Stern <stern@rowland.harvard.edu> wrote:
> On Thu, 11 Aug 2005, Christoph Hellwig wrote:
> 
> > On Thu, Aug 11, 2005 at 11:24:23AM -0700, Greg KH wrote:
> > > > This patch (as536) simplifies the driver-model core by replacing the klist
> > > > used to store the set of devices bound to a driver with a regular list
> > > > protected by a mutex.  It turns out that even with a klist, there are too
> > > > many opportunities for races for the list to be used safely by more than
> > > > one thread at a time.  And given that only one thread uses the list at any
> > > > moment, there's no need to add all the extra overhead of making it a
> > > > klist.
> > >
> > > Hm, but that was the whole reason to go to a klist in the first place.
> >
> > And shows once more that the klist approach was totally misguided.
> 
> I'll let Pat answer Christoph's comment.
> 
> Do note that the bus's list of devices and the bus's list of registered
> drivers are still klists.  Only the driver's list of bound devices gets
> reverted to a normal list.
>

Hmm, so what do I do in the following scenario - I have a serio port
(AUX) that has a synaptics touchpad bound to it which is driven by
psmouse driver. psmouse driver registers a child port (synaptics
pass-through) during probe call. The child port is also driven by
psmouse module - but it looks like it will deadlock when binding.

Am I missing something here?

-- 
Dmitry

  reply	other threads:[~2005-08-11 20:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-10 20:56 [PATCH] Don't use a klist for drivers' set-of-devices Alan Stern
2005-08-11 18:24 ` Greg KH
2005-08-11 18:53   ` Christoph Hellwig
2005-08-11 19:43     ` Alan Stern
2005-08-11 20:29       ` Dmitry Torokhov [this message]
2005-08-11 20:52         ` Alan Stern
2005-08-12 13:48         ` Alan Stern
2005-08-15 21:21         ` Alan Stern
2005-08-16 22:34           ` Dmitry Torokhov
2005-08-17 13:55             ` Alan Stern
2005-08-17 14:33               ` Bartlomiej Zolnierkiewicz

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=d120d50005081113294dbb4961@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=dtor_core@ameritech.net \
    --cc=greg@kroah.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mochel@digitalimplant.org \
    --cc=stern@rowland.harvard.edu \
    /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