Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 27 Jul 2002 09:54:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 27 Jul 2002 09:54:07 -0400 Received: from dsl-213-023-021-146.arcor-ip.net ([213.23.21.146]:55015 "EHLO starship") by vger.kernel.org with ESMTP id ; Sat, 27 Jul 2002 09:54:06 -0400 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Jesse Barnes , martin@dalecki.de Subject: Re: [PATCH] lock assertion macros for 2.5.28 Date: Sat, 27 Jul 2002 15:59:00 +0200 X-Mailer: KMail [version 1.3.2] Cc: linux-kernel@vger.kernel.org References: <20020725233047.GA782991@sgi.com> <3D40DA00.9080603@evision.ag> <20020726174039.GB793866@sgi.com> In-Reply-To: <20020726174039.GB793866@sgi.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1102 Lines: 28 On Friday 26 July 2002 19:40, Jesse Barnes wrote: > On Fri, Jul 26, 2002 at 07:11:28AM +0200, Marcin Dalecki wrote: > > Well one one place? Every single implementation of the request_fn > > method from the request_queue_t needs to hold some > > lock associated with the queue in question. > > > > In fact you will find ASSERT_LOCK macros sparnkled through the scsi code > > already right now. BTW> ASSERT_HOLDS would sound a bit more > > familiar to some of us. > > > > This minor issue asside I think that your idea is a good thing. > > Thanks for the pointer. I'll change those assertions over in the > next revision. The scsi version is not the same, it's going to need to be changed to this sensible version. The original name is better and shorter. I doubt there is anybody who will not know immediately what MUST_HOLD(&lock) means. -- Daniel - 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/