Previously, reset just set a long timer to wait until all inflight I/Os complete. As already noted as a TODO item, check if any I/O is still inflight before completing the reset by using a new API spdk_bdev_get_current_qd(). The RBD bdev module can count outstanding I/Os itself but is not efficient. Signed-off-by: liu-darong <liu.darong@xsky.com> Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Iecaf90b06cae8e21198ec3822b978b54f5404d2b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13945 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> Reviewed-by: Dong Yi <yidong0635@126.com> Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: GangCao <gang.cao@intel.com> |
||
---|---|---|
.. | ||
bdev_rbd_rpc.c | ||
bdev_rbd.c | ||
bdev_rbd.h | ||
Makefile |