Re: error : preempt_count 1

Denis Vlasenko (
Tue, 14 May 2002 14:45:40 -0200

On 13 May 2002 14:18, Robert Love wrote:
> > erro: halt[8635] exited with preempt_count 1
> >
> > What does it mean?
> Absolutely nothing bad. It is a debugging check to catch bad code that
> does funny things with locks. Ideally, every program should call unlock
> for each instance it called lock - balancing everything out and giving a
> preempt_count of zero.

> Some code in the kernel, knowing it is shutting down, does not bother to
> drop any held locks and subsequently you see that message.

> Since it is triggering false positives, I will remove it eventually.

I'd say don't remove it, just omit the 'error:' part - this will
reduce panic mails on the subject.

> For now it is incredibly useful for catching real problems. And the
> above, while harmless, could be fixed for "cleanliness" concerns.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at