From owner-freebsd-fs@FreeBSD.ORG Sat May 12 10:08:28 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE434106564A for ; Sat, 12 May 2012 10:08:28 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from cpsmtpb-ews02.kpnxchange.com (cpsmtpb-ews02.kpnxchange.com [213.75.39.5]) by mx1.freebsd.org (Postfix) with ESMTP id 597AD8FC0C for ; Sat, 12 May 2012 10:08:28 +0000 (UTC) Received: from cpsps-ews12.kpnxchange.com ([10.94.84.179]) by cpsmtpb-ews02.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 12 May 2012 12:07:21 +0200 Received: from CPSMTPM-TLF103.kpnxchange.com ([195.121.3.6]) by cpsps-ews12.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Sat, 12 May 2012 12:07:21 +0200 Received: from sjakie.klop.ws ([212.182.167.131]) by CPSMTPM-TLF103.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Sat, 12 May 2012 12:07:20 +0200 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id AB4371157F for ; Sat, 12 May 2012 12:07:20 +0200 (CEST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-fs@freebsd.org References: <201205112150.q4BLoHUD097623@freefall.freebsd.org> Date: Sat, 12 May 2012 12:07:20 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <201205112150.q4BLoHUD097623@freefall.freebsd.org> User-Agent: Opera Mail/11.62 (FreeBSD) X-OriginalArrivalTime: 12 May 2012 10:07:20.0751 (UTC) FILETIME=[04E3D3F0:01CD3027] X-RcptDomain: freebsd.org Subject: Re: kern/167685: [zfs] ZFS on USB drive prevents shutdown / reboot X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2012 10:08:28 -0000 On Fri, 11 May 2012 23:50:17 +0200, Jeff Kletsky wrote: > The following reply was made to PR kern/167685; it has been noted by > GNATS. > > From: Jeff Kletsky > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: kern/167685: [zfs] ZFS on USB drive prevents shutdown / > reboot > Date: Fri, 11 May 2012 14:41:03 -0700 > > This is a multi-part message in MIME format. > --------------020209050805030409070009 > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > Problem can be replicated by booting of a "memstick" (with a "spare" USB > stick as /dev/da1) and then executing > # dd if=/dev/zer of=/dev/da1 bs=64k > # zpool create stick /dev/da1 > # reboot > Problem has been reliably reproduced on the Atom 330 previously > mentioned, as well as on an AMD A8-3870 with A75 chipset. It also can be > replicated using VirtualBox running under Ubuntu on the AMD A8-3870 > system. It does not seem specific to one "flavor" of USB controller or > driver. > Using /usr/src/release/generate_release.sh and bisection, I have > confirmed that > * r227445 does not exhibit the behavior ("Copy stable/9 to releng/9.0 as > part of the FreeBSD 9.0-RELEASE release cycle) > * r229097 does not exhibit the behavior > * r229281 -- FAIL by not rebooting under the conditions described above. > Based on these results, I am suspicious of > r229100 | hselasky | 2011-12-31 06:33:15 -0800 (Sat, 31 Dec 2011) | 6 > lines > MFC r228709, r228711 and r228723: > - Add missing unlock of USB controller's lock, when > doing shutdown, suspend and resume. > - Add code to wait for USB shutdown to be executed at system shutdown. > - Add sysctl which can be used to skip this waiting. > as being what brought the issue to the forefront. > I am presently building r229099 and r229100 to confirm this suspicion. > A potential, though untested workaround would be > # sysctl hw.usb.no_shutdown_wait=1 I had/have the same problem with ZFS on my external USB backup-disk. I use that sysctl since and can confirm that it works.