From owner-freebsd-fs@FreeBSD.ORG Tue Dec 29 21:13:14 2009 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 A3EFA106566B for ; Tue, 29 Dec 2009 21:13:14 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id 3CC7C8FC18 for ; Tue, 29 Dec 2009 21:13:13 +0000 (UTC) Received: by ewy26 with SMTP id 26so8759313ewy.3 for ; Tue, 29 Dec 2009 13:13:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Il8yT8Z7Au2CaHQV8SFf2K1JFM78Krk0iFJwRqFwQiY=; b=djOrhclrwd3jYmmc6pZVddml8sEQnU9TwTnqZR51FLw6NmlBgWahbEtii888xBDSSO WMiPHH1dg5DUYsMQmibi6WSu2urb+/hFhvm6sefry2LkifrPnW19NJAoajLJJ98EZDef V0xAWQqwTP9QuvJhsv7iY/d+r/lHxUE3yenoA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wspifpkxWCs4ITxF94WtARnEhZQeOR98Ie9b5PymO0yCa/g0NO3cL0mnZy74wbh7Wg KTypZdsC9TEZxZdv00LwMgsmQ0OGrjHgR4UvvI6ogLqXmc4GKg7yHUtBHjTBUkicW1FL 9aKDA/+4vb9L9znEWfj+br5+tIioizL4RWTj0= MIME-Version: 1.0 Received: by 10.216.86.131 with SMTP id w3mr6030062wee.156.1262119590812; Tue, 29 Dec 2009 12:46:30 -0800 (PST) Date: Tue, 29 Dec 2009 21:46:30 +0100 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ZFS small fix in arc.c and zvol.c 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: Tue, 29 Dec 2009 21:13:14 -0000 Hi, /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs in arc.c, a mutex is not properly detroyed: --- arc.c.orig 2009-12-29 21:15:31.192819155 +0100 +++ arc.c 2009-12-29 21:16:58.034271766 +0100 @@ -3626,6 +3626,7 @@ mutex_destroy(&arc_mru_ghost->arcs_mtx); mutex_destroy(&arc_mfu->arcs_mtx); mutex_destroy(&arc_mfu_ghost->arcs_mtx); + mutex_destroy(&arc_l2c_only->arcs_mtx); mutex_destroy(&zfs_write_limit_lock); i dont know if it's ok but in zvol.c opensolaris call zvol_size_changed just after zil_replay in zvol_create_minor function --- zvol.c.orig 2009-12-29 21:31:42.111529028 +0100 +++ zvol.c 2009-12-29 21:32:32.347413297 +0100 @@ -837,6 +837,7 @@ zv->zv_volblocksize = doi.doi_data_block_size; zil_replay(os, zv, &zv->zv_txg_assign, zvol_replay_vector, NULL); + zvol_size_changed(zv, maj); /* XXX this should handle the possible i/o error */ VERIFY(dsl_prop_register(dmu_objset_ds(zv->zv_objset),