]> git.proxmox.com Git - mirror_spl.git/commit - module/spl/spl-kstat.c
3537 add kstat_waitq_enter and friends
authorNed Bass <bass6@llnl.gov>
Mon, 26 Aug 2013 23:42:11 +0000 (16:42 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Oct 2013 20:41:52 +0000 (13:41 -0700)
commitf483a97a417ca7292d6a7d516a72558d385f2370
treece593a45fec65667f3fb3b5e57134e404c2741a0
parentffbf0e57c2ad9e72ab437c7982f443926cb26325
3537 add kstat_waitq_enter and friends

These kstat interfaces are required to port
"Illumos #3537 want pool io kstats" to ZFS on Linux.

kstat_waitq_enter()
kstat_waitq_exit()
kstat_runq_enter()
kstat_runq_exit()

Additionally, zero out the ks_data buffer in __kstat_create() so
that the kstat_io_t counters are initialized to zero.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/kstat.h
module/spl/spl-kstat.c