mirror_zfs/cmd
George.Wilson cc92e9d0c3 3246 ZFS I/O deadman thread
Reviewed by: Matt Ahrens <matthew.ahrens@delphix.com>
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Reviewed by: Christopher Siden <chris.siden@delphix.com>
Approved by: Garrett D'Amore <garrett@damore.org>

NOTES: This patch has been reworked from the original in the
following ways to accomidate Linux ZFS implementation

*) Usage of the cyclic interface was replaced by the delayed taskq
   interface.  This avoids the need to implement new compatibility
   code and allows us to rely on the existing taskq implementation.

*) An extern for zfs_txg_synctime_ms was added to sys/dsl_pool.h
   because declaring externs in source files as was done in the
   original patch is just plain wrong.

*) Instead of panicing the system when the deadman triggers a
   zevent describing the blocked vdev and the first pending I/O
   is posted.  If the panic behavior is desired Linux provides
   other generic methods to panic the system when threads are
   observed to hang.

*) For reference, to delay zios by 30 seconds for testing you can
   use zinject as follows: 'zinject -d <vdev> -D30 <pool>'

References:
  illumos/illumos-gate@283b84606b
  https://www.illumos.org/issues/3246

Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1396
2013-05-01 17:05:52 -07:00
..
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Report realpath() canonicalization error 2013-01-09 16:54:58 -08:00
vdev_id vdev_id: improve keyword parsing flexibility 2013-01-25 13:44:32 -08:00
zdb Illumos #3397, #3398 2013-01-11 16:42:50 -08:00
zfs Trivial spelling fix 2013-04-19 15:43:16 -07:00
zhack Illumos #2619 and #2747 2013-01-08 10:35:35 -08:00
zinject 3246 ZFS I/O deadman thread 2013-05-01 17:05:52 -07:00
zpios Refresh links to web site 2013-03-06 15:46:41 -08:00
zpool Fix hot spares 2013-03-01 13:31:02 -08:00
zstreamdump Add zstreamdump .gitignore 2012-09-06 14:23:11 -07:00
ztest Constify structures containing function pointers 2013-03-04 08:49:32 -08:00
zvol_id Remove autotools products 2012-08-27 11:47:44 -07:00
Makefile.am Retire zpool_id infrastructure 2013-01-29 12:23:17 -08:00