Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S291561AbUKBARf (ORCPT ); Mon, 1 Nov 2004 19:17:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S291564AbUKBARf (ORCPT ); Mon, 1 Nov 2004 19:17:35 -0500 Received: from fsmlabs.com ([168.103.115.128]:43653 "EHLO musoma.fsmlabs.com") by vger.kernel.org with ESMTP id S385249AbUKBARQ (ORCPT ); Mon, 1 Nov 2004 19:17:16 -0500 Date: Mon, 1 Nov 2004 17:16:02 -0700 (MST) From: Zwane Mwaikambo To: Lee Revell cc: Dominik Brodowski , linux-kernel@vger.kernel.org, rusty@rustcorp.com.au Subject: Re: [PATCH] [CPU-HOTPLUG] convert cpucontrol to be a rwsem In-Reply-To: <1099332277.3647.43.camel@krustophenia.net> Message-ID: References: <20041101084337.GA7824@dominikbrodowski.de> <1099332277.3647.43.camel@krustophenia.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1142 Lines: 27 On Mon, 1 Nov 2004, Lee Revell wrote: > On Mon, 2004-11-01 at 07:00 -0700, Zwane Mwaikambo wrote: > > Agreed it makes a lot more sense, i think there could be some places where > > we use preempt_disable to protect against cpu offline which could > > converted, but that can come later. > > > > You know I picked up Robert Love's book the other day and was surprised > to read we are not supposed to be using preempt_disable, there is a > per_cpu interface for exactly this kind of thing. Which is currently > recommended? It's on a case by case basis, preempt_disable has the side effect of ensuring that you run through that specific critical section without being interrupted by scheduling, this happens to also block out various things like RCU and the stop_machine (used by cpu hotplug) code amongst others. I'm curious what is the excert that you're referring to? Thanks, Zwane - 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/