On Thu, May 09, 2002, David Brownell <[EMAIL PROTECTED]> wrote:
> > We use clear_bit and set_bit because it's atomic and makes sure we don't
> > race with the HC updating the same data.
> 
> If the HC is updating the same data, it'd seem like such
> races have been a longstanding risk.

They would still be races if clear_bit and set_bit weren't atomic, but
since they are (atleast on SMP kernels). It's a Read-Modify-Write race.

JE


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to