From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n7AEIgvP062638 for ; Mon, 10 Aug 2009 09:18:42 -0500 Received: from mail.sandeen.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 76E6DB22F3E for ; Mon, 10 Aug 2009 07:29:30 -0700 (PDT) Received: from mail.sandeen.net (sandeen.net [209.173.210.139]) by cuda.sgi.com with ESMTP id kGvpvpS2IItSCxW4 for ; Mon, 10 Aug 2009 07:29:30 -0700 (PDT) Message-ID: <4A802C75.3080904@sandeen.net> Date: Mon, 10 Aug 2009 09:19:33 -0500 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: [PATCH] xfs: fix spin_is_locked assert on uni-processor builds References: <20090810140006.GA21521@infradead.org> In-Reply-To: <20090810140006.GA21521@infradead.org> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Christoph Hellwig Cc: xfs@oss.sgi.com Christoph Hellwig wrote: > Without SMP or preemption spin_is_locked always returns false, > so we can't do an assert with it. Instead use assert_spin_locked, > which does the right thing on all builds. oops! > This fixes kernel.org BZ #13621. > > > Signed-off-by: Christoph Hellwig > Reported-by: Johannes Engel > Tested-by: Johannes Engel Reviewed-by: Eric Sandeen > > Index: linux-2.6/fs/xfs/xfs_log.c > =================================================================== > --- linux-2.6.orig/fs/xfs/xfs_log.c 2009-08-09 23:27:07.889729629 -0300 > +++ linux-2.6/fs/xfs/xfs_log.c 2009-08-09 23:27:24.092725926 -0300 > @@ -3180,7 +3180,7 @@ try_again: > STATIC void > xlog_state_want_sync(xlog_t *log, xlog_in_core_t *iclog) > { > - ASSERT(spin_is_locked(&log->l_icloglock)); > + assert_spin_locked(&log->l_icloglock); > > if (iclog->ic_state == XLOG_STATE_ACTIVE) { > xlog_state_switch_iclogs(log, iclog, 0); > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs