From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dualathlon.random (ppp-217-133-42-200.cust-adsl.tiscali.it [217.133.42.200]) by dsl2.external.hp.com (Postfix) with ESMTP id 3782D4E69 for ; Thu, 8 Apr 2004 10:16:11 -0600 (MDT) Date: Thu, 8 Apr 2004 18:16:10 +0200 From: Andrea Arcangeli To: James Bottomley Subject: Re: [parisc-linux] rmap: parisc __flush_dcache_page Message-ID: <20040408161610.GF31667@dualathlon.random> References: <1081435237.1885.144.camel@mulgrave> <20040408151415.GB31667@dualathlon.random> <1081438124.2105.207.camel@mulgrave> <20040408153412.GD31667@dualathlon.random> <1081439244.2165.236.camel@mulgrave> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1081439244.2165.236.camel@mulgrave> Cc: Hugh Dickins , Linux Kernel , parisc-linux@parisc-linux.org List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Apr 08, 2004 at 10:47:23AM -0500, James Bottomley wrote: > candidate for being in interrupt (even though most drivers should be > offloading to softirq/tasklets). softirq tasklets would be unsafe too, oh well, if you take it really from irq context (irq/softirq/tasklet) then just a spinlock isn't enough, it'd need to be an irq safe lock or whatever similar plus you must be sure to never generate exceptions triggering the call inside the critical section. sounds like we need some per-arch abstraction to cover this, we for sure don't want an irq spinlock for this, then we can as well leave the semaphore for all archs but parisc.