]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzpool/kernel.c
Illumos #3537
authorMatthew Ahrens <mahrens@delphix.com>
Tue, 27 Aug 2013 00:09:29 +0000 (17:09 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 31 Oct 2013 16:16:03 +0000 (09:16 -0700)
commit330847ff36146a427a48e79a9733dda3828284e8
treedb3a98b0b3b48203aad38ebc4d92aa837c6764d7
parenta117a6d66e5cf1e9d4f173bccc786a169e9a8e04
Illumos #3537

3537 want pool io kstats

Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Reviewed by: Sa?o Kiselkov <skiselkov.ml@gmail.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Brendan Gregg <brendan.gregg@joyent.com>
Approved by: Gordon Ross <gwr@nexenta.com>

References:
  http://www.illumos.org/issues/3537
  illumos/illumos-gate@c3a6601

Ported by: Cyril Plisko <cyril.plisko@mountall.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Porting Notes:

1. The patch was restructured to take advantage of the existing
   spa statistics infrastructure.  To accomplish this the kstat
   was moved in to spa->io_stats and the init/destroy code moved
   to spa_stats.c.

2. The I/O kstat was simply named <pool> which conflicted with the
   pool directory we had already created.  Therefore it was renamed
   to <pool>/io

3. An update handler was added to allow the kstat to be zeroed.
include/sys/spa.h
include/sys/zfs_context.h
lib/libzpool/kernel.c
module/zfs/spa_stats.c
module/zfs/vdev_queue.c