Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 8 Aug 2002 13:39:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 8 Aug 2002 13:39:52 -0400 Received: from reload.namesys.com ([212.16.7.75]:20619 "EHLO reload.namesys.com") by vger.kernel.org with ESMTP id ; Thu, 8 Aug 2002 13:39:40 -0400 Date: Thu, 8 Aug 2002 21:43:17 +0400 From: Joshua MacDonald To: Rik van Riel Cc: Jesse Barnes , Jens Axboe , linux-kernel@vger.kernel.org, phillips@arcor.de, rml@tech9.net Subject: Re: [PATCH] lock assertion macros for 2.5.30 Message-ID: <20020808174317.GG8804@reload.namesys.com> Mail-Followup-To: Rik van Riel , Jesse Barnes , Jens Axboe , linux-kernel@vger.kernel.org, phillips@arcor.de, rml@tech9.net References: <20020808170824.GA29468@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 29 On Thu, Aug 08, 2002 at 02:31:40PM -0300, Rik van Riel wrote: > On Thu, 8 Aug 2002, Jesse Barnes wrote: > > On Thu, Aug 08, 2002 at 08:00:45AM +0200, Jens Axboe wrote: > > > > For MUST_NOT_HOLD to work, you need to take into account which processor > > > took the lock etc. > > [snip] > > > Agreed. I'll post another patch that doesn't mess with the scsi > > stuff. Maybe later I can put together a useful > > 'lock-not-held-on-this-cpu' macro. > > You don't need to put this in a macro. This test is valid > for ALL spinlocks in the kernel and can be done from inside > the spin_lock() macro itself, when spinlock debugging is on. > This is just not true. When you make this assertion, it doesn't mean you intend to take the lock. It could have to do with lock ordering, or it could be testing that some lock is properly released. Why do you seem to be against more assertions? They won't get in your way. -josh - 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/