linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jon Masters <jcm@redhat.com>
To: John Kacur <jkacur@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org,
	Clark Williams <williams@redhat.com>
Subject: Re: [PATCH -rt] Updates-from-Jon-Masters-for-hwlat_detector.c.patch
Date: Tue, 03 Nov 2009 10:17:21 -0500	[thread overview]
Message-ID: <1257261441.12638.111.camel@tonnant> (raw)
In-Reply-To: <520f0cf10911021146i136af7bfg370a217185b5154c@mail.gmail.com>

On Mon, 2009-11-02 at 20:46 +0100, John Kacur wrote:
> On Mon, Nov 2, 2009 at 4:43 PM, Thomas Gleixner <tglx@linutronix.de> wrote:

> >> diff --git a/drivers/misc/hwlat_detector.c b/drivers/misc/hwlat_detector.c
> >> index be6553f..7191e17 100644
> >> --- a/drivers/misc/hwlat_detector.c
> >> +++ b/drivers/misc/hwlat_detector.c
> >> @@ -262,6 +262,8 @@ static int get_sample(void *unused)
> >>               /* Keep a running maximum ever recorded hardware latency */
> >>               if (sample > data.max_sample)
> >>                       data.max_sample = sample;
> >> +
> >> +             wake_up(&data.wq); /* wake up reader(s) */
> >>       }
> >>
> >>       ret = 0;
> >> @@ -299,8 +301,6 @@ static int kthread_fn(void *unused)
> >>                       goto err_out;
> >>               }
> >>
> >> -             wake_up(&data.wq); /* wake up reader(s) */
> >> -
> >
> > This reverts -rt commit 5fc485f6341c177e9d5f641c6fb9e33ca465aa84.
> >
> > CONFIG_DEBUG_SPINLOCK_SLEEP resp. CONFIG_DEBUG_PREEMPT will tell you
> > why this is a bad idea on -rt :)
> >
> > Thanks,
> >
> >        tglx
> > --
> 
> Ugh. Thanks for catching that. To be honest not sure how it happened,
> so it must be my fault. :)
> 
> Updated patch just adds the error checking from Jon Masters then,
> patched against -rt.

Actually, I think it might be my fault. I'll talk to you about the best
way to proceed with updates since we're still looking for a reproducer
on that lockup Clark was seeing a while back.

Jon.

      parent reply	other threads:[~2009-11-03 15:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-22 22:12 [PATCH -rt] Updates-from-Jon-Masters-for-hwlat_detector.c.patch John Kacur
2009-11-02 15:43 ` Thomas Gleixner
2009-11-02 19:46   ` John Kacur
2009-11-03 13:15     ` Thomas Gleixner
2009-11-03 13:50       ` John Kacur
2009-11-03 15:17     ` Jon Masters [this message]

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=1257261441.12638.111.camel@tonnant \
    --to=jcm@redhat.com \
    --cc=jkacur@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=williams@redhat.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).