From owner-freebsd-current@FreeBSD.ORG Fri Oct 7 05:55:19 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6773E106564A; Fri, 7 Oct 2011 05:55:19 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id ED36B8FC0C; Fri, 7 Oct 2011 05:55:18 +0000 (UTC) Received: by qadz30 with SMTP id z30so3381760qad.13 for ; Thu, 06 Oct 2011 22:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UlRKzWkfk1PEFsZExBsad7j+AVOds6hx7/MT324JBr0=; b=PTzPx7ZSH6xRVXD+Y7RFKPHK/V+DTOThAsMiWHccY9wkQSGhKsBjp7F6n+36PxSSFj FFYpI6J6UgJaza7zuVKtQYGhuAl1Wh6VRjc86QpwC33bqdL5UKmz8VWwWImfiganJecI WrFCvcGKFQkgD4alDCciF75DS2uYScdIdIeF4= MIME-Version: 1.0 Received: by 10.224.213.10 with SMTP id gu10mr832683qab.33.1317966918376; Thu, 06 Oct 2011 22:55:18 -0700 (PDT) Received: by 10.224.74.82 with HTTP; Thu, 6 Oct 2011 22:55:18 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 Oct 2011 22:55:18 -0700 Message-ID: From: Garrett Cooper To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current , Hans Petter Selasky Subject: Re: USB storage corruption/panic when doing file IO and unplugging (another, non-storage) device 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: Fri, 07 Oct 2011 05:55:19 -0000 On Thu, Oct 6, 2011 at 9:30 PM, Adrian Chadd wrote: > Hi, > > I've noticed a strange issue with 9.0-BETA3. I haven't tried this on > any previous 9.0 installs, I'm sorry, so I don't know when it began. > > If I'm doing some disk IO (say svn checkout, kernel building, watching > a movie) on a USB device, whilst adding/removing non-storage USB > devices (specifically here, unsupported wifi devices so I can get > their device/vendor IDs), I reliably see failed read/write IO > transactions. This ends up causing an eventual panic. > > Has anyone seen this before? > > This is _not_ plug/unplug the active storage device, or another > storage device. This is when doing IO on a storage device (whether the > root device or a media device) whilst plug/unplug a non-storage USB > device (wifi chipsets w/ no driver.) Yeah. Ran into it earlier on in the 9.x cycle with twa unplugging a USB keyboard when I was rebooting a machine; the panic was fixed in twa, not ukbd. I suppose my question is: does this only happen with USB, or is firewire affected, and why aren't the devices being properly masked against interrupts [in the same queue??] [by newbus???]? Thanks, -Garrett