Skip to contentSkip to conversation

2.5.8-pre2: preempt: exits with preempt_count 1

DISCUSSION Duncan Sands 6 participants 8 messages Apr 10, 2002

lore
Share & tools
lore
#0 lore raw

My system (x86 K6 UP running 2.5.8-pre2 with preemption) on powering down gave:

...
Power down.
error: halt[411] exited with preempt_count 1

This was after about 24 hours of up time. What can I do to help track down this locking problem?

All the best,

Duncan.

#1 lore raw
Quoted 4 lines · Duncan Sands

error: halt[411] exited with preempt_count 1

This was after about 24 hours of up time. What can I do to help track down this locking problem?

It is not a big deal. The issue is that in the system shutdown code, something does not release a lock but just figures "the system is going down, what is the point?" It is probably the BKL ...

For the sake of code readability and having nothing quit with a nonzero preempt_count, we should explicitly drop the lock, but it is not hurting anything (now, if you get this message elsewhere, there may be a problem).

I am trying to find what is the cause but I have not tracked it down yet
...

Robert Love

#2 lore raw
Quoted 11 lines · Robert Love
Quoted 4 lines · Duncan Sands

error: halt[411] exited with preempt_count 1

This was after about 24 hours of up time. What can I do to help track down this locking problem?

It is not a big deal. The issue is that in the system shutdown code, something does not release a lock but just figures "the system is going down, what is the point?" It is probably the BKL ...

Quoted 6 lines

For the sake of code readability and having nothing quit with a nonzero preempt_count, we should explicitly drop the lock, but it is not hurting anything (now, if you get this message elsewhere, there may be a problem).

I am trying to find what is the cause but I have not tracked it down yet

This is also still happening on 2.4.19-pre6 + preempt

Quoted 15 lines

...

Robert Love

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

#3 lore raw
In reply to Duncan Sands
Quoted 8 lines · Duncan Sands

My system (x86 K6 UP running 2.5.8-pre2 with preemption) on powering down gave:
...
Power down.
error: halt[411] exited with preempt_count 1

This was after about 24 hours of up time. What can I do to help track down this locking problem?

If you fixed the oopsing 2.5.8-pre1 kernel by putting 'lock_kernel()' in exit.c, then you have to remove that line.

The correct fix was applied later, and if you leave in the call to 'lock_kernel()' you get the exact message you're reporting.

If line 505 of kernel/exit.c is lock_kernel() in your tree then delete it, and try again.

Signature · 1 line
Skip
#4 lore raw
In reply to Duncan Sands
Quoted 7 lines · Robert Love
Quoted 4 lines · Duncan Sands

error: halt[411] exited with preempt_count 1

This was after about 24 hours of up time. What can I do to help track down this locking problem?

Quoted 2 lines · Duncan Sands

UP x86 K6 system running 2.5.8-pre3 with preemption. Using usb-uhci. I got the following bug when powering off:

It looks like one problem, caused by some usb device driver not exiting cleanly.

Pierre

Signature · 3 lines
------------------------------------------------
 Pierre Rousselet <[email protected]>
------------------------------------------------
#5 lore raw
In reply to Duncan Sands
Quoted 10 lines · Skip Ford
Quoted 8 lines · Duncan Sands

My system (x86 K6 UP running 2.5.8-pre2 with preemption) on powering down gave:
...
Power down.
error: halt[411] exited with preempt_count 1

This was after about 24 hours of up time. What can I do to help track down this locking problem?

Quoted 8 lines

If you fixed the oopsing 2.5.8-pre1 kernel by putting 'lock_kernel()' in exit.c, then you have to remove that line.

The correct fix was applied later, and if you leave in the call to 'lock_kernel()' you get the exact message you're reporting.

If line 505 of kernel/exit.c is lock_kernel() in your tree then delete it, and try again.

No, it wasn't that, but thanks for thinking about it.

Ciao, Duncan.

#6 lore raw
In reply to Duncan Sands
Quoted 7 lines · Pierre Rousselet
Quoted 5 lines · Robert Love
Quoted 4 lines · Duncan Sands

error: halt[411] exited with preempt_count 1

This was after about 24 hours of up time. What can I do to help track down this locking problem?

Quoted 6 lines
Quoted 2 lines · Duncan Sands

UP x86 K6 system running 2.5.8-pre3 with preemption. Using usb-uhci. I got the following bug when powering off:

It looks like one problem, caused by some usb device driver not exiting cleanly.

Probably. There was no BUG with 2.5.8-pre2 though.

Duncan.

#7 lore raw
In reply to Duncan Sands
Quoted 7 lines · * Robert Love ([email protected]) wrote:
Quoted 4 lines · Duncan Sands

error: halt[411] exited with preempt_count 1

This was after about 24 hours of up time. What can I do to help track down this locking problem?

Quoted 8 lines

It is not a big deal. The issue is that in the system shutdown code, something does not release a lock but just figures "the system is going down, what is the point?" It is probably the BKL ...

For the sake of code readability and having nothing quit with a nonzero preempt_count, we should explicitly drop the lock, but it is not hurting anything (now, if you get this message elsewhere, there may be a problem).

ditto with nfs. doesn't require a system shutdown, just stopping the nfs server.

error: nfsd[983] exited with preempt_count 1
error: rpciod[994] exited with preempt_count 1
error: lockd[993] exited with preempt_count 1

cheers,
-chris