Re: [COUNTERPATCH] mm: avoid overflowing preempt_count() in mmu_take_all_locks()

Avi Kivity
2010-04-01T16:40:54Z

On 04/01/2010 02:16 PM, Peter Zijlstra wrote:
> On Thu, 2010-04-01 at 14:13 +0300, Avi Kivity wrote:
>
>
>> If someone is willing to audit all code paths to make sure these locks
>> are always taken in schedulable context I agree that's a better fix.
>>
> They had better be, they're not irq-safe. Also that's what lockdep is
> for.
>

I don't understand. There are non-schedulable contexts (i.e. with a
spinlock held) that are not irq contexts.

--
error compiling committee.c: too many arguments to function