From owner-freebsd-current@FreeBSD.ORG Mon Jun 22 01:19:39 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D1AA106564A; Mon, 22 Jun 2009 01:19:39 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 246DA8FC19; Mon, 22 Jun 2009 01:19:37 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAB95PkqDaFvK/2dsb2JhbADMfYQKBQ X-IronPort-AV: E=Sophos;i="4.42,264,1243828800"; d="scan'208";a="38976074" Received: from fraser.cs.uoguelph.ca ([131.104.91.202]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 21 Jun 2009 21:19:36 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by fraser.cs.uoguelph.ca (Postfix) with ESMTP id B50EC109C271; Sun, 21 Jun 2009 21:19:36 -0400 (EDT) X-Virus-Scanned: amavisd-new at fraser.cs.uoguelph.ca Received: from fraser.cs.uoguelph.ca ([127.0.0.1]) by localhost (fraser.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wLTGFf-U1qnG; Sun, 21 Jun 2009 21:19:36 -0400 (EDT) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by fraser.cs.uoguelph.ca (Postfix) with ESMTP id 32AB1109C263; Sun, 21 Jun 2009 21:19:36 -0400 (EDT) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id n5M1LY303094; Sun, 21 Jun 2009 21:21:34 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Sun, 21 Jun 2009 21:21:34 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Kris Kennaway In-Reply-To: <4A3E234F.6050403@FreeBSD.org> Message-ID: References: <1242075474.72992.118.camel@hood.oook.cz> <3c1674c90906151408n6febec56m140b089b694f6e13@mail.gmail.com> <20090616073353.GZ33280@droso.net> <200906160812.04284.jhb@freebsd.org> <4A3E234F.6050403@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Doug Rabson , current@FreeBSD.org, John Baldwin , pav@FreeBSD.org, freebsd-current@FreeBSD.org, Kip Macy Subject: Re: hang in rpccon from interrupting NFS operations (Re: pointyhat panic) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2009 01:19:39 -0000 On Sun, 21 Jun 2009, Kris Kennaway wrote: > > Got another deadlock after upgrading. Again, busy NFS volume, and ^C'ing a > recursive find hung in rpccon state: > > db> bt 89596 > Tracing pid 89596 tid 102493 td 0xffffff0089260000 > sched_switch() at sched_switch+0x17c > mi_switch() at mi_switch+0x21d > sleepq_switch() at sleepq_switch+0x123 > sleepq_timedwait() at sleepq_timedwait+0x4d > _sleep() at _sleep+0x301 > clnt_reconnect_call() at clnt_reconnect_call+0x5d3 > nfs_request() at nfs_request+0x225 > nfs_statfs() at nfs_statfs+0x197 > __vfs_statfs() at __vfs_statfs+0x28 > kern_fstatfs() at kern_fstatfs+0x286 > fstatfs() at fstatfs+0x34 > syscall() at syscall+0x1af > Xfast_syscall() at Xfast_syscall+0xd0 > --- syscall (397, FreeBSD ELF64, fstatfs), rip = 0x800726dcc, rsp = > 0x7fffffffe1a8, rbp = 0x1000 --- > > These are mounted with intr, I'll try disabling that next. > There are two sleeps in clnt_rc.c. One of them optionally does a PCATCH and returns when interrupted via ^C, but the other one (which it is sleeping on above), doesn't. I've emailed Kris a small patch that changes that for him to test. If anyone else wants to test the patch, just email me for a copy, rick