>> * Steven Rostedt <rostedt@goodmis.org> wrote:>>> > What should we use instead of #ifdef PREEMPT_RT? Or should we just> > keep it the same for both. Since this fix is only to fix spinlocks> > that schedule, I figured that it would be better not to waste the> > memory of those not using PREEMPT_RT. Should I use the opposite> > PREEMPT_DESKTOP?>> i'd go for removing bit-spinlocks altogether, in the upstream kernel. It> would simplify things, besides making PREEMPT_RT simpler as well. The> memory overhead is not a big issue i believe. (8 more bytes per ext3 bh,> on x86)>

The problem here is that it's not ext3 bh's only. They're still the normalbuffer head. The problem arrises because the ext3 "journal head" isallocated within these bit spin locks. I tried to monkey with putting thelocks in the journal heads and have checks to see when to free them, butit wasn't that simple. I started having problems with some of the freeingtransactions, I might have assumed too much.

I'll give it one more try to get it into the journal heads, but afterthat, (if I fail) I'll let someone who understands the ext3 system betterhandle this.