login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
16
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Cyrill Gorcunov
Subject:
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
Date: Friday, April 16, 2010 - 7:32 am
On Fri, Apr 16, 2010 at 03:47:14AM +0200, Frederic Weisbecker wrote: [...]
quoted text
> > + > > +/* Callback function for perf event subsystem */ > > +void watchdog_overflow_callback(struct perf_event *event, int nmi, > > + struct perf_sample_data *data, > > + struct pt_regs *regs) > > +{ > > + int this_cpu = smp_processor_id(); > > + unsigned long touch_ts = per_cpu(watchdog_touch_ts, this_cpu); > > + > > + if (touch_ts == 0) { > > + __touch_watchdog(); > > + return; > > + } > > + > > + /* check for a hardlockup > > + * This is done by making sure our timer interrupt > > + * is incrementing. The timer interrupt should have > > + * fired multiple times before we overflow'd. If it hasn't > > + * then this is a good indication the cpu is stuck > > + */ > > + if (is_hardlockup(this_cpu)) { > > + /* only print hardlockups once */ > > + if (cpumask_test_cpu(this_cpu, to_cpumask(hardlockup_mask))) > > + return; > > + > > + if (hardlockup_panic) > > + panic("Watchdog detected hard LOCKUP on cpu %d", this_cpu); > > + else > > + WARN(1, "Watchdog detected hard LOCKUP on cpu %d", this_cpu); > > + > > + cpumask_set_cpu(this_cpu, to_cpumask(hardlockup_mask)); > > > > May be have an arch spin lock there to update your cpu mask safely. >
Hmm, this is NMI handler path so from what we protect this per-cpu data? Do I miss something? /me confused -- Cyrill --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Don Zickus
, (Thu Apr 15, 2:25 pm)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Randy Dunlap
, (Thu Apr 15, 3:32 pm)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Frederic Weisbecker
, (Thu Apr 15, 6:47 pm)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Don Zickus
, (Fri Apr 16, 7:12 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Don Zickus
, (Fri Apr 16, 7:12 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Cyrill Gorcunov
, (Fri Apr 16, 7:32 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Frederic Weisbecker
, (Fri Apr 16, 7:43 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Frederic Weisbecker
, (Fri Apr 16, 7:46 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Don Zickus
, (Fri Apr 16, 7:46 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Peter Zijlstra
, (Fri Apr 16, 7:53 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Cyrill Gorcunov
, (Fri Apr 16, 7:54 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Frederic Weisbecker
, (Fri Apr 16, 7:59 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Don Zickus
, (Fri Apr 16, 8:04 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Frederic Weisbecker
, (Fri Apr 16, 8:32 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Don Zickus
, (Fri Apr 16, 9:14 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Frederic Weisbecker
, (Fri Apr 16, 9:24 am)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Don Zickus
, (Mon Apr 19, 2:21 pm)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Ingo Molnar
, (Mon Apr 19, 2:35 pm)
Re: [PATCH v2] [watchdog] combine nmi_watchdog and softlockup
, Don Zickus
, (Mon Apr 19, 2:51 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v2 11/11] sched: update tg->shares after cpu.shares write
Ingo Molnar
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Eric W. Biederman
Re: init's children list is long and slows reaping children.
Jeffrey V. Merkey
Re: Versioning file system
git
:
Matthieu Moy
Re: Bugs in Gitosis
Daniel Barkalow
Re: About git and the use of SHA-1
David Lang
Re: mingw, windows, crlf/lf, and git
Shawn O. Pearce
Re: Bugs in Gitosis
Junio C Hamano
Re: [PATCH 14/21] Convert ce_path_match() to use struct pathspec
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
David Miller
Re: [PATCH] ipv6: fix display of local and remote sit endpoints
Cong Wang
Re: [PATCH] s2io: add dynamic LRO disable support
Tobacco New Year Promo
Eric Dumazet
Re: [PATCH] net: implement emergency route cache rebulds when gc_elasticity is exc...
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
of/flattree: merge early_init_dt_scan_memory() common code
Linux Kernel Mailing List
b43: N-PHY: add some registers and structs definitions
Linux Kernel Mailing List
powerpc: Move /proc/ppc64 to /proc/powerpc and add symlink
Linux Kernel Mailing List
drivers/acpi: use kasprintf
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
Tony Abernethy
Re: The Atheros story in much fewer words
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate