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

@@ -23,10 +23,11 @@
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
  * Copyright (c) 2012 by Delphix. All rights reserved.
  * Copyright 2012 Milan Jurik. All rights reserved.
  * Copyright (c) 2012, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2013 Steven Hartland.  All rights reserved.
  */
 
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>

@@ -5162,12 +5163,11 @@
                 if (zhp == NULL) {
                         ++errors;
                         continue;
                 }
                 if (holding) {
-                        if (zfs_hold(zhp, delim+1, tag, recursive,
-                            B_FALSE, -1) != 0)
+                        if (zfs_hold(zhp, delim+1, tag, recursive, -1) != 0)
                                 ++errors;
                 } else {
                         if (zfs_release(zhp, delim+1, tag, recursive) != 0)
                                 ++errors;
                 }