From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 08AFD2F693 for ; Wed, 18 Apr 2001 23:29:00 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f3J3Pcl10975 for axp-list@listman.redhat.com; Wed, 18 Apr 2001 23:25:38 -0400 Received: from happy.xkey.com (gw.xkey.com [206.86.100.52]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f3J3PbC10971 for ; Wed, 18 Apr 2001 23:25:37 -0400 Received: (from smtp@localhost) by happy.xkey.com id UAA24796 for ; Wed, 18 Apr 2001 20:28:46 -0700 Received: from user-33qs177.dialup.mindspring.com(199.174.4.231) by happy.xkey.com via smtp (V1.3) id sma024777; Wed Apr 18 20:27:59 2001 Received: (from lindahl@localhost) by localhost.hpti.com (8.11.0/8.11.0) id f3J3TJU02328 for axp-list@redhat.com; Wed, 18 Apr 2001 23:29:19 -0400 X-Authentication-Warning: localhost.hpti.com: lindahl set sender to lindahl@conservativecomputer.com using -f Date: Wed, 18 Apr 2001 23:29:19 -0400 From: Greg Lindahl To: axp-list@redhat.com Subject: Re: More fun with spinlocks Message-ID: <20010418232919.A2324@wumpus.int.den.wayport.net> Mail-Followup-To: axp-list@redhat.com References: <20010414201431.B18054@wumpus.int.den.wayport.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010414201431.B18054@wumpus.int.den.wayport.net>; from lindahl@conservativecomputer.com on Sat, Apr 14, 2001 at 08:14:31PM -0400 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Regarding my spinlock lockup... I posted it to the Linux nfs mailing list and got a quick bugfix. > spin_lock_irqsave(&xprt_sock_lock, oldflags); > xprt->snd_task = NULL; > if (!rpc_wake_up_next(&xprt->sending) && xprt->stream) > xprt_add_tcp_timer(xprt, RPCXPRT_TIMEOUT); > spin_unlock_irqrestore(&xprt_sock_lock, oldflags); Trond immediately spotted a thinko in this code: xprt_add_tcp_timer() sometimes does something that has to wait for the BH, and it shouldn't be holding the spinlock while waiting. Fortunately it doesn't need the spinlock. He was surprised it hadn't shown up before, as am I; other people are running 2.2.19 on 2 cpu UP2000s using NFS v3 over tcp, right? -- g