Re: error : preempt_count 1

From: Robert Love (rml@tech9.net)
Date: Mon May 13 2002 - 11:18:07 EST


On Sun, 2002-05-12 at 23:25, Oliver Kowalke wrote:

> after shutdown (kernel 2.5.15) I've got :
>
> 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.
For now it is incredibly useful for catching real problems. And the
above, while harmless, could be fixed for "cleanliness" concerns.

        Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 14 2002 - 12:00:20 EST