Re: [patch] IBM HDAPS accelerometer driver.

From: Dmitry Torokhov
Date: Fri Aug 26 2005 - 15:10:02 EST


On 8/26/05, Robert Love <rml@xxxxxxxxxx> wrote:
> On Fri, 2005-08-26 at 15:39 -0400, Robert Love wrote:
>
> > > This is racy - 2 threads can try to do this simultaneously.
> >
> > Fixed. Thanks.
>
> Actually, doesn't sysfs and/or the vfs layer serialize the two
> simultaneous writes?
>

Not between 2 separate processes (or, rather, separate file handles)
as far as I can see...

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/