lkml.org 
[lkml]   [2001]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] remove BKL from drivers' release functions
Alan Cox wrote:

>>drivers' release functions. The release functions are already
>>serialized in the VFS code by an atomic_t which guarantees that each
>>
>The release function was only partially serialized - what stops a release
>and an open racing each other ? That in several cases was why the lock
>was there.
>
Nothing, because the BKL is not held for all opens anymore. In most of
the cases that we addressed, the BKL was in release _only_, not in open
at all. There were quite a few drivers where we added a spinlock, or
used atomic operations to keep open from racing with release.


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

\
 
 \ /
  Last update: 2005-03-22 13:13    [from the cache]
©2003-2011 Jasper Spaans