Print this page
3740 Poor ZFS send / receive performance due to snapshot hold / release processing
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/dsl_dataset.h
          +++ new/usr/src/uts/common/fs/zfs/sys/dsl_dataset.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright (c) 2012 by Delphix. All rights reserved.
  24   24   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
       25 + * Copyright (c) 2013 Steven Hartland. All rights reserved.
  25   26   */
  26   27  
  27   28  #ifndef _SYS_DSL_DATASET_H
  28   29  #define _SYS_DSL_DATASET_H
  29   30  
  30   31  #include <sys/dmu.h>
  31   32  #include <sys/spa.h>
  32   33  #include <sys/txg.h>
  33   34  #include <sys/zio.h>
  34   35  #include <sys/bplist.h>
↓ open down ↓ 145 lines elided ↑ open up ↑
 180  181  int dsl_dataset_hold_obj(struct dsl_pool *dp, uint64_t dsobj, void *tag,
 181  182      dsl_dataset_t **);
 182  183  void dsl_dataset_rele(dsl_dataset_t *ds, void *tag);
 183  184  int dsl_dataset_own(struct dsl_pool *dp, const char *name,
 184  185      void *tag, dsl_dataset_t **dsp);
 185  186  int dsl_dataset_own_obj(struct dsl_pool *dp, uint64_t dsobj,
 186  187      void *tag, dsl_dataset_t **dsp);
 187  188  void dsl_dataset_disown(dsl_dataset_t *ds, void *tag);
 188  189  void dsl_dataset_name(dsl_dataset_t *ds, char *name);
 189  190  boolean_t dsl_dataset_tryown(dsl_dataset_t *ds, void *tag);
 190      -void dsl_register_onexit_hold_cleanup(dsl_dataset_t *ds, const char *htag,
 191      -    minor_t minor);
 192  191  uint64_t dsl_dataset_create_sync(dsl_dir_t *pds, const char *lastname,
 193  192      dsl_dataset_t *origin, uint64_t flags, cred_t *, dmu_tx_t *);
 194  193  uint64_t dsl_dataset_create_sync_dd(dsl_dir_t *dd, dsl_dataset_t *origin,
 195  194      uint64_t flags, dmu_tx_t *tx);
 196  195  int dsl_dataset_snapshot(nvlist_t *snaps, nvlist_t *props, nvlist_t *errors);
 197  196  int dsl_dataset_promote(const char *name, char *conflsnap);
 198  197  int dsl_dataset_clone_swap(dsl_dataset_t *clone, dsl_dataset_t *origin_head,
 199  198      boolean_t force);
 200  199  int dsl_dataset_rename_snapshot(const char *fsname,
 201  200      const char *oldsnapname, const char *newsnapname, boolean_t recursive);
↓ open down ↓ 86 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX