mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 04:07:45 +03:00
Illumos #3086: unnecessarily setting DS_FLAG_INCONSISTENT on async
3086 unnecessarily setting DS_FLAG_INCONSISTENT on async destroyed datasets Reviewed by: Christopher Siden <chris.siden@delphix.com> Approved by: Eric Schrock <Eric.Schrock@delphix.com> References: illumos/illumos-gate@ce636f8b38 illumos changeset: 13776:cd512c80fd75 https://www.illumos.org/issues/3086 Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
committed by
Brian Behlendorf
parent
b9b24bb4ca
commit
29809a6cba
@@ -1609,13 +1609,6 @@ dmu_recv_existing_end(dmu_recv_cookie_t *drc)
|
||||
dsl_dataset_t *ds = drc->drc_logical_ds;
|
||||
int err, myerr;
|
||||
|
||||
/*
|
||||
* XXX hack; seems the ds is still dirty and dsl_pool_zil_clean()
|
||||
* expects it to have a ds_user_ptr (and zil), but clone_swap()
|
||||
* can close it.
|
||||
*/
|
||||
txg_wait_synced(ds->ds_dir->dd_pool, 0);
|
||||
|
||||
if (dsl_dataset_tryown(ds, FALSE, dmu_recv_tag)) {
|
||||
err = dsl_dataset_clone_swap(drc->drc_real_ds, ds,
|
||||
drc->drc_force);
|
||||
|
||||
Reference in New Issue
Block a user