Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753248Ab0HSRId (ORCPT ); Thu, 19 Aug 2010 13:08:33 -0400 Received: from imr4.ericy.com ([198.24.6.8]:33983 "EHLO imr4.ericy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445Ab0HSRIb (ORCPT ); Thu, 19 Aug 2010 13:08:31 -0400 Date: Thu, 19 Aug 2010 10:07:17 -0700 From: Guenter Roeck To: Fenghua Yu CC: Rudolf Marek , Huaxu Wan , H Peter Anvin , Chen Gong , Jean Delvare , linux-kernel , lm-sensors Subject: Re: [lm-sensors] [PATCH] drivers/hwmon/coretemp: Fix incorrect hot-removed CPU's core sensor issue Message-ID: <20100819170717.GA4312@ericsson.com> References: <1282172027-640-1-git-send-email-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1282172027-640-1-git-send-email-fenghua.yu@intel.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 960 Lines: 23 On Wed, Aug 18, 2010 at 06:53:45PM -0400, Fenghua Yu wrote: > From: Fenghua Yu > > In current coretemp driver, when a CPU in dev_list is hot-removed, although its > HT sibling is still running, its core sensor is gone and not available to user > level application any more. > > When a CPU is hot-removed, its core sensor should be still available to upper > level application as long as the hot-removed CPU's HT sibling is still running. > A core sensor is invisible to user level only when all of siblings in a core are > hot-removed. > Isn't that just a short term (ie a couple of ms or even us) race condition until the sibling is removed as well ? If so, why bother ? Thanks, Guenter -- 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/