[Fault-injection-developer] RE: semaphore usage in xxx_store()
Status: Alpha
Brought to you by:
rustyl
From: Zhuang, L. <lou...@in...> - 2003-01-07 01:41:33
|
> I'm not sure which xxx_store() function you are talking about. > In general if a store() operation is triggering some action > that parallel user write operations (i.e. the same store() > being called at the same time) might cause wacky side effects > then I would serialize the store() operations with a semaphore. I think it is sysfs' responsibility to serialize these accesses... Maybe we need to take a talk with Randy Dunlap in LKML. > > As a result I tend to use a semaphore in my boiler plate > attribute code, but if we do not need the semaphore then we > should drop it. |