changeset 10121:3f4b7e36b09b

6860073 mirror_set_clean_rr allocates the un_pernode_dirty_bm array the wrong size
author John Harres <John.Harres@Sun.COM>
date Fri, 17 Jul 2009 16:57:52 -0600
parents d36eaa844e85
children 96eda55bfd54
files usr/src/uts/common/io/lvm/mirror/mirror_resync.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/lvm/mirror/mirror_resync.c	Fri Jul 17 23:02:00 2009 +0000
+++ b/usr/src/uts/common/io/lvm/mirror/mirror_resync.c	Fri Jul 17 16:57:52 2009 -0600
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -3808,7 +3808,7 @@
 	rw_enter(&un->un_pernode_dirty_mx[node], RW_WRITER);
 	if (un->un_pernode_dirty_bm[node] == NULL) {
 		un->un_pernode_dirty_bm[node] = (uchar_t *)kmem_zalloc(
-		    un->un_rrd_num, KM_SLEEP);
+		    howmany(un->un_rrd_num, NBBY), KM_SLEEP);
 	}
 	rw_exit(&un->un_pernode_dirty_mx[node]);