Darek Stojaczyk f93b6fb0a4 bdev: defer unregister untill *all* descriptors are closed
We used to wait only for those descriptors which
specified the hotremove notification callback. The
bdev could've been removed before the descriptor
was closed and the subsequent spdk_bdev_close would
simply segfault.

This patch modifies spdk_bdev_unregister to always
wait for all descriptors to be closed before actually
unregistering the bdev. This consolidates the bdev
unregister behavior for descriptors with and without
the hotremove callback.

Change-Id: I9b358209c6abd301b6fe8660e27bc6fa4ef485d6
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450175
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-04-23 17:06:37 +00:00
..
2019-03-15 19:32:55 +00:00
2019-04-09 17:40:24 +00:00
2019-03-20 21:05:33 +00:00
2019-03-21 17:42:29 +00:00
2017-07-12 18:12:52 -04:00
2018-12-03 19:50:15 +00:00
2019-02-20 01:14:18 +00:00
2019-03-29 21:15:14 +00:00
2018-07-06 22:49:20 +00:00
2019-04-08 17:04:25 +00:00
2019-01-29 00:12:07 +00:00
2018-12-05 00:35:35 +00:00
2019-04-08 17:04:25 +00:00
2019-01-22 23:22:16 +00:00
2019-03-01 21:38:02 +00:00
2019-01-30 06:36:25 +00:00
2018-12-06 22:25:09 +00:00
2019-02-01 09:29:12 +00:00
2019-03-28 14:16:56 +00:00