Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2009 21:46:30 +0100
From:      =?ISO-8859-1?Q?Micka=EBl_Maillot?= <mickael.maillot@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   ZFS small fix in arc.c and zvol.c
Message-ID:  <ea7b7b810912291246v4a989cd2t357b0a34f99a56e1@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ea7b7b810912291246v4a989cd2t357b0a34f99a56e1>