From owner-freebsd-fs@FreeBSD.ORG Mon Jan 23 20:31:29 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 38B1D1065672 for ; Mon, 23 Jan 2012 20:31:29 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 8135C8FC14 for ; Mon, 23 Jan 2012 20:31:28 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id WAA09110; Mon, 23 Jan 2012 22:31:24 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RpQXz-00002b-PJ; Mon, 23 Jan 2012 22:31:23 +0200 Message-ID: <4F1DC398.3050502@FreeBSD.org> Date: Mon, 23 Jan 2012 22:31:20 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Martin Ranne References: <39C592E81AEC0B418EAD826FC1BBB09B25031D@mailgate> <4F18459F.7040309@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B252444@mailgate> <4F1858FE.7020509@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B25253F@mailgate> <4F1878AC.6060704@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B25284B@mailgate> <4F1AC995.7050506@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B255E15@mailgate> <4F1D75CD.6050000@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B25607F@mailgate> In-Reply-To: <39C592E81AEC0B418EAD826FC1BBB09B25607F@mailgate> X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-fs@freebsd.org" Subject: Re: zpool import reboots computer 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, 23 Jan 2012 20:31:29 -0000 on 23/01/2012 20:33 Martin Ranne said the following: > Have done some checking and found mc->mc_vd == NULL in the function vdev_mirror_io_start() where the while-loop is. > > while (children--) { > mc = &mm->mm_child[c]; > zio_nowait(zio_vdev_child_io(zio, zio->io_bp, > mc->mc_vd, mc->mc_offset, zio->io_data, zio->io_size, > zio->io_type, zio->io_priority, 0, > vdev_mirror_child_done, mc)); > c++; > } > > if i set a break before it runs zio_nowait() it will still crash the kernel. > What can i check next for it to be able to continue? Is it possible to have it ignore the child where mc_vd is NULL? I am also looking into what more I can do to debug it (adding code to print to console as i can not use kernel dumps). Not sure. If by "set a break" you mean inserting a break statement, try continue instead. -- Andriy Gapon