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 50C592F00A for ; Sat, 14 Apr 2001 20:13:36 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f3F0A7032500 for axp-list@listman.redhat.com; Sat, 14 Apr 2001 20:10:07 -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 f3F0A6D32496 for ; Sat, 14 Apr 2001 20:10:07 -0400 Received: (from smtp@localhost) by happy.xkey.com id RAA23447 for ; Sat, 14 Apr 2001 17:13:23 -0700 Received: from dhcp64-134-22-108.int.den.wayport.net(64.134.22.108) by happy.xkey.com via smtp (V1.3) id sma023442; Sat Apr 14 17:13:22 2001 Received: (from lindahl@localhost) by localhost.hpti.com (8.11.0/8.11.0) id f3F0EVn18079 for axp-list@redhat.com; Sat, 14 Apr 2001 20:14:31 -0400 X-Authentication-Warning: localhost.hpti.com: lindahl set sender to lindahl@conservativecomputer.com using -f Date: Sat, 14 Apr 2001 20:14:31 -0400 From: Greg Lindahl To: axp-list@redhat.com Subject: More fun with spinlocks Message-ID: <20010414201431.B18054@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: OK, so how do I read this: xprt.c:1052 spinlock stuck in hybcst.d0000.fs at fffffc00003ee468(0) owner rsh at fffffc00003ee900(1) xprt.c:1146 wait_on_bh, CPU 1: 0000000000000000 irq: 1 [1 0] bh: 1 [1 0] The machine is a 2-cpu UP2000 running 2.2.19. Looks like the 2 processes involved are rsh and hybcst (the weather code that is used to predict weather for US airlines...), and the spinlock was taken at linux/net/sunrpc/xprt.c line 1146 and the other guy who wants it is in linux/net/sunrpc/xprt.c line 1052... known problem? It's an nfs v3 thing. * * Releases the socket for use by other requests. */ void xprt_up_transmit(struct rpc_task *task) { struct rpc_xprt *xprt = task->tk_rqstp->rq_xprt; if (xprt->snd_task && xprt->snd_task == task) { unsigned long oldflags; 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); } } And the person who wants it is xprt.c:1052: /* * The following 2 routines allow a task to sleep while socket memory is * low. */ static void tcp_write_space(struct sock *sk) { struct rpc_xprt *xprt; unsigned long oldflags; if (!(xprt = xprt_from_sock(sk))) return; if (xprt->shutdown) return; /* Wait until we have enough socket memory */ if (sock_wspace(sk) < min(sk->sndbuf,XPRT_MIN_WRITE_SPACE)) return; if (xprt_test_and_set_wspace(xprt)) goto out; spin_lock_irqsave(&xprt_sock_lock, oldflags); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ if (xprt->snd_task && xprt->snd_task->tk_rpcwait == &xprt->sending) rpc_wake_up_task(xprt->snd_task); spin_unlock_irqrestore(&xprt_sock_lock, oldflags); out: wake_up_interruptible(sk->sleep); } Is this a known problem?