Spdk/module/bdev/lvol
Mike Gerdts c9b802ca49 lvol: add spdk_lvol_is_degraded
This is mostly a wrapper around spdk_blob_is_degraded(), but it also
performs a NULL check on lvol->blob. Since an lvol without a blob cannot
perform IO, this condition returns true.

The two callers of spdk_blob_is_degraded() in vbdev_lvol.c have been
updated to use spdk_lvol_is_degraded().

Change-Id: I11dc682a26d971c8854aeab280c8199fced358c3
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17896
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2023-05-09 17:58:11 +08:00
..
Makefile so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
vbdev_lvol_rpc.c vbdev_lvol: allow degraded lvols to be deleted 2023-05-09 17:58:11 +08:00
vbdev_lvol.c lvol: add spdk_lvol_is_degraded 2023-05-09 17:58:11 +08:00
vbdev_lvol.h lvol: lvol destruction race leads to null deref 2023-05-09 17:58:11 +08:00