bdev/null: unregister the null bdev when app exit.

Change-Id: I4f5bbf1f1d271faec80ef5fdb0e551ee1649ef7e
Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
Reviewed-on: https://review.gerrithub.io/389922
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Cunyin Chang 2017-12-01 08:50:49 +08:00 committed by Jim Harris
parent a5be238025
commit e0ba4da0b1

View File

@ -267,7 +267,7 @@ bdev_null_finish(void)
struct null_bdev *bdev, *tmp;
TAILQ_FOREACH_SAFE(bdev, &g_null_bdev_head, tailq, tmp) {
bdev_null_destruct(bdev);
spdk_bdev_unregister(&bdev->bdev, NULL, NULL);
}
}