Illumos 5809 - Blowaway full receive in v1 pool causes kernel panic

5809 Blowaway full receive in v1 pool causes kernel panic
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Reviewed by: Will Andrews <will@freebsd.org>
Approved by: Gordon Ross <gwr@nexenta.com>

References:
  https://www.illumos.org/issues/5809
  https://github.com/illumos/illumos-gate/commit/f40b29c

Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Paul Dagnelie 2016-02-05 13:47:48 -08:00 committed by Brian Behlendorf
parent 8e4c5c9a94
commit 6b42ea8590

View File

@ -1350,7 +1350,8 @@ dmu_recv_begin_sync(void *arg, dmu_tx_t *tx)
} }
dsobj = dsl_dataset_create_sync(ds->ds_dir, recv_clone_name, dsobj = dsl_dataset_create_sync(ds->ds_dir, recv_clone_name,
snap, crflags, drba->drba_cred, tx); snap, crflags, drba->drba_cred, tx);
dsl_dataset_rele(snap, FTAG); if (drba->drba_snapobj != 0)
dsl_dataset_rele(snap, FTAG);
dsl_dataset_rele(ds, FTAG); dsl_dataset_rele(ds, FTAG);
} else { } else {
dsl_dir_t *dd; dsl_dir_t *dd;