From owner-freebsd-fs@FreeBSD.ORG Mon May 17 06:11:48 2010 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 39EFE106566C for ; Mon, 17 May 2010 06:11:48 +0000 (UTC) (envelope-from alex.bakhtin@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id C111A8FC16 for ; Mon, 17 May 2010 06:11:47 +0000 (UTC) Received: by fxm19 with SMTP id 19so464785fxm.13 for ; Sun, 16 May 2010 23:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=vnqYK4LQlWZopsokcPAnjIM38N154iiKiZUXrCfdKHo=; b=nsClROEwgu8i85V38beRZKXYcKZpnfYMJPkLLfSPELu7wt5ti4Bt7lAPrA2fINjJtv Z7Bv+mraRJfvU+Ktgas/C+6mlJ7YoSZN7ZVXp/PmCx/fLEug7+3bzTuUWTyRtKbGuh0E N5oHZ5zy653r0zWa92xvkvuImgwJfNFvhB9CY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=M2HfCRwVVYbqN7ryxfFmWV8J64/ZfJTtjCXK4hJ0k2KWwk5swmzlQnJmvT7EJ38s8V 4glNahdJbJcLO0JxospmFppMpeuXt4hpGIgsZ+0tr9kt2X/uzxlY+HWJ5dbSUlGsD4cW PdM2sFnWZshSmspCJnHY7ZQPH7Lb75w37mnHo= MIME-Version: 1.0 Received: by 10.204.175.14 with SMTP id v14mr25403bkz.72.1274074957731; Sun, 16 May 2010 22:42:37 -0700 (PDT) Received: by 10.204.71.139 with HTTP; Sun, 16 May 2010 22:42:37 -0700 (PDT) In-Reply-To: <201005130934.o4D9YiJL039462@freefall.freebsd.org> References: <201005130934.o4D9YiJL039462@freefall.freebsd.org> Date: Mon, 17 May 2010 09:42:37 +0400 Message-ID: From: Alex Bakhtin To: pjd@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: kern/145339: [zfs] deadlock after detaching block device from raidz pool 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: Mon, 17 May 2010 06:11:48 -0000 Pawel, I tested your patch in the following zfs configuration (all on 5x2TB WD20EARS drivers): 1. raidz1 on top of physical disks. 2. raidz1 on top of geli 3. raidz2 on top of physical disks. In all three cases it seems that the problem was fixed - I can't crash zfs in vdev_geom when unplugging the disk. Unfortunately, 3 times I got a deadlock in zfs after plugging vdevs back under load. It happens several seconds after zpool online command. I'm not 100 percent sure that deadlocks are related to this patch, but... I'm going to make some additional testing with patched and not patched kernels. Alex Bakhtin 2010/5/13 : > Synopsis: [zfs] deadlock after detaching block device from raidz pool > > State-Changed-From-To: open->feedback > State-Changed-By: pjd > State-Changed-When: czw 13 maj 2010 09:33:20 UTC > State-Changed-Why: > Could you try this patch: > > =A0 =A0 =A0 =A0http://people.freebsd.org/~pjd/patches/vdev_geom.c.3.patch