Re: Bug in on_each_cpu?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, March 1, 2007 - 8:28 am

On Thu, 01 Mar 2007 03:34:18 -0800 Zachary Amsden <zach@vmware.com> wrote:


Perhaps a WARN_ON(irqs_disabled()) in clock_was_set() would help.  But probably
the one in smp_call_function() will suffice.


yup.  I once played with adding warnings in places like spin_lock_irq(), 
but there were false positives from places which were odd-but-correct.

It would be worth revisiting however.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Bug in on_each_cpu?, Zachary Amsden, (Thu Mar 1, 4:34 am)
Re: Bug in on_each_cpu?, Rusty Russell, (Thu Mar 1, 4:41 am)
Re: Bug in on_each_cpu?, Zachary Amsden, (Thu Mar 1, 4:47 am)
Re: Bug in on_each_cpu?, Andrew Morton, (Thu Mar 1, 8:22 am)
Re: Bug in on_each_cpu?, Andrew Morton, (Thu Mar 1, 8:28 am)
Re: Bug in on_each_cpu?, Zachary Amsden, (Thu Mar 1, 1:03 pm)
Re: Bug in on_each_cpu?, Zachary Amsden, (Thu Mar 1, 1:31 pm)
Re: Bug in on_each_cpu?, Ernie Petrides, (Thu Mar 1, 9:46 pm)