Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753853AbbEANre (ORCPT ); Fri, 1 May 2015 09:47:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47765 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752828AbbEANrc (ORCPT ); Fri, 1 May 2015 09:47:32 -0400 Date: Fri, 1 May 2015 09:46:18 -0400 From: Don Zickus To: Chris Metcalf Cc: Frederic Weisbecker , Ingo Molnar , Andrew Morton , Andrew Jones , chai wen , Ulrich Obergfell , Fabian Frederick , Aaron Tomlin , Ben Zhang , Christoph Lameter , Gilad Ben-Yossef , Steven Rostedt , linux-kernel@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, Thomas Gleixner , Peter Zijlstra Subject: Re: [PATCH v10 2/3] watchdog: add watchdog_cpumask sysctl to assist nohz Message-ID: <20150501134618.GJ98296@redhat.com> References: <1430422766-19703-1-git-send-email-cmetcalf@ezchip.com> <1430422766-19703-3-git-send-email-cmetcalf@ezchip.com> <20150430200036.GF98296@redhat.com> <55428C10.4070904@ezchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55428C10.4070904@ezchip.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1655 Lines: 38 On Thu, Apr 30, 2015 at 04:09:52PM -0400, Chris Metcalf wrote: > On 04/30/2015 04:00 PM, Don Zickus wrote: > >On Thu, Apr 30, 2015 at 03:39:25PM -0400, Chris Metcalf wrote: > >> if (err) > >> pr_err("Failed to create watchdog threads, disabled\n"); > >>+ else { > >>+ if (smpboot_update_cpumask_percpu_thread( > >>+ &watchdog_threads, &watchdog_cpumask)) > >>+ pr_err("Failed to set cpumask for watchdog threads\n"); > >Stupid nitpick, this error message tells us the 'watchdog' threads caused > >the cpumask failure, but .... > > > >>+ /* > >>+ * Failure would be due to being unable to allocate > >>+ * a temporary cpumask, so we are likely not in a > >>+ * position to do much else to make things better. > >>+ */ > >>+ if (smpboot_update_cpumask_percpu_thread( > >>+ &watchdog_threads, &watchdog_cpumask) != 0) > >>+ pr_err("cpumask update failed\n"); > >This one does not. :-( If there is a respin, I would suggest copying the > >above message down here. > > There is that "#define pr_fmt(fmt)" at the top of the file that prefixes > all the messages with "NMI watchdog: ", though. I think that's > sufficient to make it clear what the second message is about. > (The first message I wrote the way I did to be parallel with the > message just before it, if the thread creation failed.) Ah, yes. Nevermind. I keep forgetting about that. :-) Cheers, Don -- 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/