From: Greg KH <greg@kroah.com>
To: Duncan Sands <baldrick@wanadoo.fr>
Cc: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [linux-usb-devel] [PATCH] USB speedtouch: don't open a connection if no firmware
Date: Tue, 8 Apr 2003 14:40:45 -0700 [thread overview]
Message-ID: <20030408214045.GA6376@kroah.com> (raw)
In-Reply-To: <200304082222.10919.baldrick@wanadoo.fr>
On Tue, Apr 08, 2003 at 10:22:10PM +0200, Duncan Sands wrote:
> > > + udsl_fire_receivers (instance);
> > >
> > > dbg ("udsl_atm_open successful");
> > >
> > > + MOD_INC_USE_COUNT;
> > > +
> > > return 0;
> > > }
> >
> > Any way you can convert this driver to not use MOD_INC_USE_COUNT, as
> > it's racy and not really supported anymore? But if you _really_ have to
> > use it, you need to call it at the first possible chance to make any
> > race window smaller.
>
> Hi Greg, I'm waiting on the fixes to the ATM layer (coming soon to a kernel
> near you).
Ah, ok, that makes sense.
> As for the position of MOD_INC_USE_COUNT, did you ever hear
> of anyone getting bitten by a race like this? If it makes you feel better, I
> will move it up, probably just before I take the semaphore (since that is the
> first place we can sleep). I will do it tomorrow, OK?
Yes, it needs to be before any function that can sleep. I'll hold off
applying this patch then.
thanks,
greg k-h
next prev parent reply other threads:[~2003-04-08 21:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 7:26 [PATCH] USB speedtouch: don't open a connection if no firmware Duncan Sands
2003-04-08 20:12 ` [linux-usb-devel] " Greg KH
2003-04-08 20:22 ` Duncan Sands
2003-04-08 21:40 ` Greg KH [this message]
2003-04-09 8:28 ` Duncan Sands
2003-04-09 23:31 ` Greg KH
[not found] <OF50785981.C7D592CC-ON85256D02.007454B5-85256D02.007ACB50@wsib.on.ca>
2003-04-09 8:31 ` Duncan Sands
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=20030408214045.GA6376@kroah.com \
--to=greg@kroah.com \
--cc=baldrick@wanadoo.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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