public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.8-pre2: preempt: exits with preempt_count 1
@ 2002-04-10 12:53 Duncan Sands
  2002-04-10 18:28 ` Robert Love
  2002-04-10 18:40 ` Skip Ford
  0 siblings, 2 replies; 8+ messages in thread
From: Duncan Sands @ 2002-04-10 12:53 UTC (permalink / raw)
  To: Kernel List; +Cc: rml

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.8-pre2: preempt: exits with preempt_count 1
  2002-04-10 12:53 2.5.8-pre2: preempt: exits with preempt_count 1 Duncan Sands
@ 2002-04-10 18:28 ` Robert Love
  2002-04-10 18:42   ` Pierre Rousselet
                     ` (2 more replies)
  2002-04-10 18:40 ` Skip Ford
  1 sibling, 3 replies; 8+ messages in thread
From: Robert Love @ 2002-04-10 18:28 UTC (permalink / raw)
  To: Duncan Sands; +Cc: Kernel List

On Wed, 2002-04-10 at 08:53, Duncan Sands wrote:

> 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.8-pre2: preempt: exits with preempt_count 1
  2002-04-10 12:53 2.5.8-pre2: preempt: exits with preempt_count 1 Duncan Sands
  2002-04-10 18:28 ` Robert Love
@ 2002-04-10 18:40 ` Skip Ford
  2002-04-10 19:20   ` Duncan Sands
  1 sibling, 1 reply; 8+ messages in thread
From: Skip Ford @ 2002-04-10 18:40 UTC (permalink / raw)
  To: Duncan Sands; +Cc: Kernel List, rml

Duncan Sands wrote:
> 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.

-- 
Skip

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.8-pre2: preempt: exits with preempt_count 1
  2002-04-10 18:28 ` Robert Love
@ 2002-04-10 18:42   ` Pierre Rousselet
  2002-04-10 19:21     ` Duncan Sands
  2002-04-10 22:07   ` Chris Wright
  2002-04-10 22:14   ` Bongani
  2 siblings, 1 reply; 8+ messages in thread
From: Pierre Rousselet @ 2002-04-10 18:42 UTC (permalink / raw)
  To: Robert Love; +Cc: Duncan Sands, Kernel List

Robert Love wrote:
> On Wed, 2002-04-10 at 08:53, Duncan Sands wrote:
> 
> 
>>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?

Duncan Sands wrote:
 > 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
-- 
------------------------------------------------
  Pierre Rousselet <pierre.rousselet@wanadoo.fr>
------------------------------------------------


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.8-pre2: preempt: exits with preempt_count 1
  2002-04-10 18:40 ` Skip Ford
@ 2002-04-10 19:20   ` Duncan Sands
  0 siblings, 0 replies; 8+ messages in thread
From: Duncan Sands @ 2002-04-10 19:20 UTC (permalink / raw)
  To: Skip Ford; +Cc: Kernel List, rml

On Wednesday 10 April 2002 8:40 pm, Skip Ford wrote:
> Duncan Sands wrote:
> > 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.

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

Ciao, Duncan.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.8-pre2: preempt: exits with preempt_count 1
  2002-04-10 18:42   ` Pierre Rousselet
@ 2002-04-10 19:21     ` Duncan Sands
  0 siblings, 0 replies; 8+ messages in thread
From: Duncan Sands @ 2002-04-10 19:21 UTC (permalink / raw)
  To: Pierre Rousselet, Robert Love; +Cc: Kernel List

On Wednesday 10 April 2002 8:42 pm, Pierre Rousselet wrote:
> Robert Love wrote:
> > On Wed, 2002-04-10 at 08:53, Duncan Sands wrote:
> >>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?
>
> Duncan Sands wrote:
>  > 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.8-pre2: preempt: exits with preempt_count 1
  2002-04-10 18:28 ` Robert Love
  2002-04-10 18:42   ` Pierre Rousselet
@ 2002-04-10 22:07   ` Chris Wright
  2002-04-10 22:14   ` Bongani
  2 siblings, 0 replies; 8+ messages in thread
From: Chris Wright @ 2002-04-10 22:07 UTC (permalink / raw)
  To: Robert Love; +Cc: Duncan Sands, Kernel List

* Robert Love (rml@tech9.net) wrote:
> On Wed, 2002-04-10 at 08:53, Duncan Sands wrote:
> 
> > 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).

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.8-pre2: preempt: exits with preempt_count 1
  2002-04-10 18:28 ` Robert Love
  2002-04-10 18:42   ` Pierre Rousselet
  2002-04-10 22:07   ` Chris Wright
@ 2002-04-10 22:14   ` Bongani
  2 siblings, 0 replies; 8+ messages in thread
From: Bongani @ 2002-04-10 22:14 UTC (permalink / raw)
  To: Robert Love; +Cc: Kernel List

On Wed, 2002-04-10 at 20:28, Robert Love wrote:
> On Wed, 2002-04-10 at 08:53, Duncan Sands wrote:
> 
> > 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

This is also still happening on 2.4.19-pre6 + preempt 


> ...

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-04-10 22:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-10 12:53 2.5.8-pre2: preempt: exits with preempt_count 1 Duncan Sands
2002-04-10 18:28 ` Robert Love
2002-04-10 18:42   ` Pierre Rousselet
2002-04-10 19:21     ` Duncan Sands
2002-04-10 22:07   ` Chris Wright
2002-04-10 22:14   ` Bongani
2002-04-10 18:40 ` Skip Ford
2002-04-10 19:20   ` Duncan Sands

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox