From: Rick Scott <rwscott@al...> - 2011-07-09 11:19:46
On Fri, 2011-07-08 at 19:24 -0700, kirk w wrote:
> Hi Rick,
> Just compiled 3.0.0-rc6 kernel. Had to change init.c. The big kernel
> lock is gone as of 2.6.39 so I used a mutex to replace it. I've
> attached the modified init.c and commented each line I changed with
> "// BKL is gone." so you can see it. Guess I could have made a patch
> :). I'm a lousy c programmer so there's probably a better way to do
> this. But it seems to work.
This scares me :) I don't think that mutex protects anything, it's only
locked in one place. For it to do anything useful I think it would need
to be locked in probe also. probe() used to be called with the BKL held,
so the lock made sense.
I think you might have just been lucky so far, unless the kernel is now
ensuring that probe and disconnect cannot be called at the same time.
This is going to take a bit of investigation .....
Get latest updates about Open Source Projects, Conferences and News.