[lkml]   [1998]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Are file_operations.{open,release} serialized?
Mike Kilburn <> writes:

> > that card. I want to ask you if it is safe to increment this
> > counter in the device's routine and to decrement
> > in the file_operations.release() routine without any locking
> I use atomic_inc and atomic_dec for this sort of thing. Dont forget about
> SMP systems.

sys_open() calls lock_kernel() around I'm
told that all of the filesystem operations are (though I think this
person's expertise lies in squid rather than kernel hacking).


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to

 \ /
  Last update: 2005-03-22 13:42    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean