]> granicus.if.org Git - zfs/commitdiff
Additional rw_lock not being initialized cleaned in updated code
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 13 Jan 2009 23:05:02 +0000 (15:05 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 13 Jan 2009 23:05:02 +0000 (15:05 -0800)
module/zfs/dsl_dataset.c

index 93ea8aa11173143d2cf963e6136c7b02b99b9d8e..aa5b991fede8eca3a9c7c33d12fdf802609c27c9 100644 (file)
@@ -362,7 +362,7 @@ dsl_dataset_get_ref(dsl_pool_t *dp, uint64_t dsobj, void *tag,
                mutex_init(&ds->ds_opening_lock, NULL, MUTEX_DEFAULT, NULL);
                mutex_init(&ds->ds_deadlist.bpl_lock, NULL, MUTEX_DEFAULT,
                    NULL);
-               rw_init(&ds->ds_rwlock, 0, 0, 0);
+               rw_init(&ds->ds_rwlock, NULL, RW_DEFAULT, NULL);
                cv_init(&ds->ds_exclusive_cv, NULL, CV_DEFAULT, NULL);
 
                err = bplist_open(&ds->ds_deadlist,