Hi,

On Wed, Nov 20, 2002 at 12:48:18AM -0800, Greg KH wrote:
> On Wed, Nov 13, 2002 at 05:16:09PM +0100, Henning Meier-Geinitz wrote:
> > +static inline void
> > +usb_scanner_inc_use(struct scn_usb_data *scn)
> > +{
> > +   atomic_inc(&scn->users);
> > +}
> > +
> > +static inline void
> > +usb_scanner_dec_use(struct scn_usb_data *scn)
> > +{
> > +   if (atomic_dec_and_test(&scn->users))
> > +           usb_scanner_free(scn);
> > +}
> 
> Hm, I really don't like "yet another usage counter" in a driver, as 2.5
> fixes a lot of this, but for 2.4, we don't have anything else to use...
> :(

If there is another solution, I could investigate if someone points in
the right direction.

Are there other problems that might stop the patch from beeing applied?

> Brian, what do you think about this patch?

Any response from Brian?

Bye,
  Henning


-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to