Add a helper function bdev_reset_device_stat() to reset I/O statistics. This funciton is used for the bdev_reset_iostat RPC. We do not have any plan to use bdev_reset_device_stat() outside lib/bdev. Hence, we do not add this as a public API. Then, add a new RPC bdev_reset_iostat to reset I/O statistics of a single bdev or all bdevs. Resetting I/O statistics affects all consumers. Add a note to CHANGELOG and doc/jsonrpc.md. Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I97af09107b5c3ad1f9c19bf3cbf027457c4fbae7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15350 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
rpc | ||
sma | ||
spdkcli | ||
__init__.py |