From: Thomas Gleixner <tglx@linutronix.de>
To: Greg KH <greg@kroah.com>
Cc: Linus Torvalds <torvalds@osdl.org>,
Mike Waychison <Michael.Waychison@Sun.COM>,
Bill Davidsen <davidsen@tmr.com>, Jirka Kosina <jikos@jikos.cz>,
Patrick Mochel <mochel@osdl.org>,
LKML <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH] fix bad locking in drivers/base/driver.c
Date: Tue, 25 Jan 2005 20:38:54 +0100 [thread overview]
Message-ID: <1106681934.4538.6.camel@tglx.tec.linutronix.de> (raw)
In-Reply-To: <20050125191950.GA11445@kroah.com>
On Tue, 2005-01-25 at 11:19 -0800, Greg KH wrote:
> On Tue, Jan 25, 2005 at 08:27:15AM -0800, Linus Torvalds wrote:
> >
> >
> > Hmm.. I certainly like the "use completions" patch, since it makes it a
> > lot more obvious what is going on (and it is what completions were
> > designed for).
> >
> > However, since it does change semantics very subtly: if you call
> > "driver_unregister()" twice (which is wrong, but looking at the code it
> > looks like it would just silently have worked), the old code would just
> > ignore it. The new code will block on the second one.
> >
> > Now, I don't mind the blocking (it's a bug to call it twice, and blocking
> > should even give a nice callback when you do the "show tasks" sysrq, so
> > it's a good way to _find_ the bug), but together with Mike's comment about
> > "Compile-tested only", I'd really like somebody (Greg?) to say "trying to
> > doubly remove the driver is so illegal that we don't care, and btw, I
> > tested it and it's all ok".
>
> I will add it to my queue of patches for the driver core, and test it
> out accordingly before trying it out in the -mm tree for a while.
>
Exactly the same patch is around since 2004-10-20.
http://marc.theaimsgroup.com/?l=linux-kernel&m=109836020930855&w=2
It never showed any problems and I have it in my kernels since then.
Also Ingo's RT patches have it since October.
tglx
next prev parent reply other threads:[~2005-01-25 19:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-24 18:25 Jirka Kosina
2005-01-24 19:00 ` Chris Wright
2005-01-25 5:56 ` Greg KH
2005-01-25 7:32 ` Mike Waychison
2005-01-25 13:49 ` Bill Davidsen
2005-01-25 16:10 ` Mike Waychison
2005-01-25 16:27 ` Linus Torvalds
2005-01-25 19:19 ` Greg KH
2005-01-25 19:38 ` Thomas Gleixner [this message]
2005-02-02 23:35 ` 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=1106681934.4538.6.camel@tglx.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=Michael.Waychison@Sun.COM \
--cc=davidsen@tmr.com \
--cc=greg@kroah.com \
--cc=jikos@jikos.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mochel@osdl.org \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®