9a943bf864
In the crypto examine function we first try to claim the bdev that's presented. If the claim fails, we were returning immediately which was incorrect because the examine function needs to look at the entire global list of vbdevs. The scenario that caught this was testing a duplicate underlying bdev name in the conf file. In that case, before this fix, the claim on the first crypto bdev worked but on the second it failed so the bdev layer never added the good one to its global list so on exit it would try to remove the crypto vbdev from the list but it was never added (because it gets added when registered which we were bailing so soon before that it never happened). Addresses github #448. Change-Id: I4e9ff9649101eb7caccfb33c2d1961921909555a Signed-off-by: paul luse <paul.e.luse@intel.com> Reviewed-on: https://review.gerrithub.io/427559 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>