LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: "Cestonaro,
	Thilo (external)"  <Thilo.Cestonaro.external@fujitsu-siemens.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: how can I touch softlockup watchdog on all cpus?
Date: Wed, 21 Mar 2007 12:44:04 -0400	[thread overview]
Message-ID: <20070321164404.GF13218@redhat.com> (raw)
In-Reply-To: <F7F9B0BE3E9BD449B110D0B1CEF6CAEF04FB6F2A@ABGEX01E.abg.fsc.net>

On Wed, Mar 21, 2007 at 05:06:34PM +0100, Cestonaro, Thilo (external) wrote:
 > Hey,
 > 
 > my module generates this ugly softlockup dump, because all cpus are stopped longer then 10 secs.
 > What I do is:
 > [code]
 > local_irq_disable();
 > // my stuff which takes long and stopps all cpus
 > .....
 > touch_softlockup_watchdog();
 > local_irq_enable();
 > [/code]
 > 
 > this prevents a dump of my current cpu but not for all.
 > A call to smp_call_function with a function which calls touch_softlockup_watchdog in it,
 > doesn't work because smp_call_function needs to be done with irqs enabled, so the watchdog comes first :(.
 > 
 > Any hints or ideas how I can do it in a better way? Disabling softlockup watchdog is not possible for me.

You didn't explain _why_ you need to sleep for such a long time,
and as you didn't give a pointer to your code, there's not
much people can do to recommend changes other than "don't do that".

	Dave

-- 
http://www.codemonkey.org.uk

  reply	other threads:[~2007-03-21 16:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-21 16:06 Cestonaro, Thilo (external)
2007-03-21 16:44 ` Dave Jones [this message]
2007-03-22  7:33   ` Cestonaro, Thilo (external)
2007-03-22 15:30     ` Lee Revell
2007-03-22 15:46       ` Cestonaro, Thilo (external)
2007-03-22 16:17         ` Lee Revell
2007-03-22 16:46           ` Cestonaro, Thilo (external)
2007-03-22 22:46             ` Jeremy Fitzhardinge
2007-03-23  1:16               ` Dave Jones
2007-03-23  1:48                 ` Jeremy Fitzhardinge
2007-03-21 16:10 Cestonaro, Thilo (external)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070321164404.GF13218@redhat.com \
    --to=davej@redhat.com \
    --cc=Thilo.Cestonaro.external@fujitsu-siemens.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: how can I touch softlockup watchdog on all cpus?' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).