d1c9e2f779
Fixes #962 Issue mentioned above was caused by race between examine on ocf bdev (which is partially asynhronous) and bdev delete. This patch adds new ocf bdev state "starting" it means that register procedure was started, base on this state, we are not allowing to destruct vbdev during registering path. Deleting of vbdev will be still possible on started vbdev or when register procedure are not started yet. Signed-off-by: Marcin Dziegielewski <marcin.dziegielewski@intel.com> Change-Id: I12099dfba75a46f95299c118f748d39af27df86a Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469406 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>