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 0228D2F236 for ; Thu, 19 Apr 2001 01:29:35 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f3J5QEE18995 for axp-list@listman.redhat.com; Thu, 19 Apr 2001 01:26:14 -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 f3J5QDC18991 for ; Thu, 19 Apr 2001 01:26:13 -0400 Received: (from smtp@localhost) by happy.xkey.com id WAA30223 for ; Wed, 18 Apr 2001 22:29:22 -0700 Received: from user-33qs177.dialup.mindspring.com(199.174.4.231) by happy.xkey.com via smtp (V1.3) id sma030219; Wed Apr 18 22:29:19 2001 Received: (from lindahl@localhost) by localhost.hpti.com (8.11.0/8.11.0) id f3J5Uep02460 for axp-list@redhat.com; Thu, 19 Apr 2001 01:30:40 -0400 X-Authentication-Warning: localhost.hpti.com: lindahl set sender to lindahl@conservativecomputer.com using -f Date: Thu, 19 Apr 2001 01:30:40 -0400 From: Greg Lindahl To: axp-list@redhat.com Subject: Re: More fun with spinlocks Message-ID: <20010419013040.A2454@wumpus.int.den.wayport.net> Mail-Followup-To: axp-list@redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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: I got a request to post the exact patch from trond. This was tested by Craig Tierney and apparently resolved the problem. ---------- Urgh. I see what's going wrong: it's the mod_timer() thing in xprt_add_tcp_timer() that's waiting on the bottom half to finish. Odd that's never surfaced before. Does the following patch fix it? Cheers, Trond --- net/sunrpc/xprt.c.orig Sun Mar 25 18:37:42 2001 +++ net/sunrpc/xprt.c Wed Apr 18 11:10:21 2001 @@ -1145,9 +1145,11 @@ unsigned long oldflags; spin_lock_irqsave(&xprt_sock_lock, oldflags); xprt->snd_task = NULL; - if (!rpc_wake_up_next(&xprt->sending) && xprt->stream) + if (!rpc_wake_up_next(&xprt->sending) && xprt->stream) { + spin_unlock_irqrestore(&xprt_sock_lock, oldflags); xprt_add_tcp_timer(xprt, RPCXPRT_TIMEOUT); - spin_unlock_irqrestore(&xprt_sock_lock, oldflags); + } else + spin_unlock_irqrestore(&xprt_sock_lock, oldflags); } }