hm, this is done on a too high level and will turn off some debugging
code. I.e. if we dont just loop long but truly deadlock here we wont
call lib/spinlock_debug.c's _raw_write_lock() code that does some sanity
checks in the debug case.
so how about doing this on a deeper level and adding a new
__raw_write_lock_flags() primitive that would look at the flags value
and could enable interrupts in the lowlevel code?
Ingo
--