Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 3 Nov 2002 20:37:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 3 Nov 2002 20:37:16 -0500 Received: from holomorphy.com ([66.224.33.161]:48017 "EHLO holomorphy") by vger.kernel.org with ESMTP id ; Sun, 3 Nov 2002 20:37:15 -0500 Date: Sun, 3 Nov 2002 17:42:24 -0800 From: William Lee Irwin III To: Robert Love Cc: Pete Zaitcev , linux-kernel@vger.kernel.org Subject: Re: interrupt checks for spinlocks Message-ID: <20021104014224.GR23425@holomorphy.com> Mail-Followup-To: William Lee Irwin III , Robert Love , Pete Zaitcev , linux-kernel@vger.kernel.org References: <200211040028.gA40S8600593@devserv.devel.redhat.com> <20021104002813.GZ16347@holomorphy.com> <20021103194249.A1603@devserv.devel.redhat.com> <20021104005339.GA16347@holomorphy.com> <1036372685.752.7.camel@phantasy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1036372685.752.7.camel@phantasy> User-Agent: Mutt/1.3.25i Organization: The Domain of Holomorphy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1019 Lines: 25 On Sun, 2002-11-03 at 19:53, William Lee Irwin III wrote: >> This non-reentrant stuff hurts my head. Another patch down the >> toilet, I guess. On Sun, Nov 03, 2002 at 08:18:04PM -0500, Robert Love wrote: > No, I think you have a good idea. Pete is right, though, the current > interrupt is disabled... but normally the other interrupts are still > enabled. > Your ideas #2, #3, and #4 are good. > Because once the lock is tainted, you still want to ensure process > context disables interrupts before grabbing the lock. > Robert Love I'll go figure out why before posting a follow-up. This is not doing what I wanted it to because the only one I originally wanted was (1), having to do with interrupt-time recursion on rwlocks and writer starvation caused by it. Bill - 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/