Messages in this thread | | | Date | Tue, 29 Jan 2013 10:28:49 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH 2/2] mutex: use spin_[un]lock instead of arch_spin_[un]lock |
| |
* nan chen <nachenn@gmail.com> wrote:
> > #define spin_lock_mutex(lock, flags) \ > > do { \ > > struct mutex *l = container_of(lock, struct mutex, > > wait_lock); \ > > \ > > DEBUG_LOCKS_WARN_ON(in_interrupt()); \ > > local_irq_save(flags); \ > > arch_spin_lock(&(lock)->rlock.raw_lock);\ > > DEBUG_LOCKS_WARN_ON(l->magic != l); \ > > } while (0) > > > > The original question was why mutex-debug.h (unmodified) uses > > irq disabling. > > > > Thanks, > > > > Ingo > > > > So, the reason why you use WARN_ON here is try to keep things > going?
What would be the alternative?
Thanks,
Ingo
| |