module/compress: Clear vol element in comp_bdev struct on vol unload
When a vol is unloaded, the vol element in comp_bdev element needs to be NULL'd so that when the comp_bdev destruct entry point is called, we won't try to unload the vol again. fixes issue #928 Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: If267335cbe2234c62351cfc39d33b0ea698ca893 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466441 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
cd8e41655d
commit
f4e401ea36
@ -1194,6 +1194,7 @@ bdev_hotremove_vol_unload_cb(void *cb_arg, int reduce_errno)
|
||||
SPDK_ERRLOG("number %d\n", reduce_errno);
|
||||
}
|
||||
|
||||
comp_bdev->vol = NULL;
|
||||
spdk_bdev_unregister(&comp_bdev->comp_bdev, NULL, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user