The generic bdev layer has a public API spdk_bdev_get_qd() but its value is the most recently measured value and it requires qd sampling to be enabled. We will have bdev modules to want to wait until all bdev_ios are aborted by a reset. Unfortunately, spdk_bdev_get_qd() is not suitable for the custom bdev module. Furthermore, spdk_bdev_channel::io_outstanding is not accessible from bdev modules. Hence, add a new public API spdk_bdev_get_current_qd(). This function should be used only from the bdev module and it should be ensured that the bdev is not unregistered during execution. Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Ica30a8d8fe3264e28f0772a39bdf5f9ba72933e1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12791 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> |
||
---|---|---|
.. | ||
bdev_internal.h | ||
bdev_rpc.c | ||
bdev_zone.c | ||
bdev.c | ||
Makefile | ||
part.c | ||
scsi_nvme.c | ||
spdk_bdev.map | ||
vtune.c |