zfsonlinux/zfs — pull request #1916 by kohsuke (2013-12-01 00:56:11+00:00)
Title: Exposing kstats from dsl_pool

dp_throughput and dp_write_limit are critical inputs to the write limit
computation of txg, so it is useful to be able to track them.

This change exposes them as kstats.

Both of these values are already defined in dsl_pool_t, so the change
ends up maintaining two copies of the same value, which is bit error
prone. OTOH, this change is less intrusive, and these values aren't
updated all that frequently, so hopefully this is OK.