lkml.org 
[lkml]   [2008]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3, RFC] misc char dev BKL pushdown
On Mon, May 19, 2008 at 8:21 PM, Jonathan Corbet wrote:
> Mike Frysinger wrote:
>> this open func already has a spinlock protecting it. doesnt that mean
>> we dont need the bkl in it ?
>
> The existence of a spinlock is a good sign. But, until somebody has
> looked at the code and verified that said lock is really protecting
> everything, it's best to leave the BKL protection (which has always been
> there, just at a higher level) in place.

if the spinlock doesnt do what it's advertising (preventing mutual
access), then the BKL is needed. if there's some UP behavior i'm not
aware of, then the BKL is needed. otherwise, the BKL is not needed in
this driver.

i should prob rewrite this driver anyways ... the open code could
easily be replaced with some atomic funcs.
-mike


\
 
 \ /
  Last update: 2008-05-20 02:49    [W:1.817 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site