Re: [patch] Real-Time Preemption, -RT-2.6.11-rc3-V0.7.38-01

Andrew Morton
2005-03-11T10:46:17Z

Steven Rostedt <rostedt@goodmis.org> wrote:
>
> > did you try the canonical way of putting a spinlock into every
> > buffer_head?
> >
>
> No, I'll try that now. I just didn't want to modify the buffer head struct
> just for journaling. But if it is the quickest and easiest fix, then I'll
> submit it and we can change it later.

You'll need two spinlocks. jbd_lock_bh_state() and jbd_lock_bh_journal_head().