Re: [PATCH] softlockup: fix problem with long kernel pausesfromkgdb

From: Ingo Molnar
Date: Tue Aug 04 2009 - 10:59:36 EST



* Jason Wessel <jason.wessel@xxxxxxxxxxxxx> wrote:

> Ingo Molnar wrote:
> > * Jason Wessel <jason.wessel@xxxxxxxxxxxxx> wrote:
> >
> >> -----
> >> From: Jason Wessel <jason.wessel@xxxxxxxxxxxxx>
> >> Subject: [PATCH] softlockup: add sched_clock_tick() to avoid kernel warning on kgdb resume
> >>
> >> When CONFIG_HAVE_UNSTABLE_SCHED_CLOCK is set sched_clock() gets the
> >> time from hardware, such as from TSC. In this configuration kgdb will
> >> report a softlock warning messages on resuming or detaching from a
> >> debug session.
> >>
> >
> > Hm, this looks quite ugly. Peter, Thomas, can you think of a
> > cleaner solution?
> >
>
> Below was a more specific test case I received from Dongdong Deng
> which did not require kgdb. The test case is not something to
> merge, it is just a simple module to build to demonstrate the
> problem outside of kgdb.
>
> The patch I submitted might have been on the "ugly" side, but
> there was not an obvious way to solve the problem without making
> changes in kernel/sched*. I opted for something that was entirely
> self contained to the softlockup code.

it's not really the fault of your patch really - all these
integrations along dynticks, scheduler time and softlockup feel a
bit awkward. Wondering whether there's some nicer way.

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