Loading
bdev/rbd: use spdk_bdev to get a handle to bdev_rbd
Previously, the code used to get an IO channel to get a handle to bdev_rbd, but that's not necessary (and can potentially fail), as we can get the bdev_rbd pointer from spdk_bdev (it's safe to do because we already check that bdev->module points at rbd_if). Signed-off-by:Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I4bedf187b3ee328d4238030e9057ffa39a05f7a5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20078 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>