Re: [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-07

Steven Rostedt
2005-04-10T15:06:57Z

On Sun, 2005-04-10 at 12:31 +0200, Ingo Molnar wrote:

> looks much cleaner than earlier ones. Would it be possible to make the
> locks per journal? [...]

I've already looked into doing this, but it would be much more intrusive
to implement. The problem lies where these locks are called with only
the buffer head as a reference. The locks are used to attach or detach
the buffer head from a journal or just see if it is already attached.
So having the lock with the journal is difficult since you need to take
the lock sometimes before you know which journal is needed. I'm sure
this is possible but it will need modifying the code where the locks are
called instead of just replacing the contents of the lock function.
Maybe with the help of Stephen Tweedie, this can be done. But what I
gave you was the cleanest and most reliable solution currently, without
changing anything but the functions to take the locks.

-- Steve