Re: error : preempt_count 1

Denis Vlasenko (vda@port.imtp.ilyichevsk.odessa.ua)
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.

--
vda
-
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/