]> granicus.if.org Git - zfs/commit
Illumos #3642, #3643
authorGeorge Wilson <george.wilson@delphix.com>
Tue, 23 Apr 2013 17:31:42 +0000 (09:31 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 1 Nov 2013 15:55:12 +0000 (08:55 -0700)
commit2696dfafd9ebce5e3aa227c630b13f2c5b26bce9
tree9c1bd42bcdb8da5e7c20759e9f518092ff50330d
parent7ec09286b761ee1fb85178ff55daaf8f74d935be
Illumos #3642, #3643

3642 dsl_scan_active() should not issue I/O to determine if async
     destroying is active
3643 txg_delay should not hold the tc_lock
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Approved by: Gordon Ross <gwr@nexenta.com>

References:
  https://www.illumos.org/issues/3642
  https://www.illumos.org/issues/3643
  illumos/illumos-gate@4a92375985c37d61406d66cd2b10ee642eb1f5e7

Ported-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1775

Porting Notes:

1. The alignment assumptions for the tx_cpu structure assume that
   a kmutex_t is 8 bytes.  This isn't true under Linux but tc_pad[]
   was adjusted anyway for consistency since this structure was
   never carefully aligned in ZoL.  If careful alignment does impact
   performance significantly this should be reworked to be portable.
include/sys/dsl_scan.h
include/sys/txg_impl.h
module/zfs/dsl_destroy.c
module/zfs/dsl_scan.c
module/zfs/txg.c