From 9938bfaf03ba5ca10976d33d7d72edc7c2715a50 Mon Sep 17 00:00:00 2001 From: paul luse Date: Mon, 1 Oct 2018 19:25:12 -0400 Subject: [PATCH] crypto: change name of the crypto io_device Don't think this matters functionally but can be confusing in debug, was using the name of the underlying bdev for the name of the io_device we're registering. Change to the name of the vbdev instead. Change-Id: I1f0eb39352f2da79db5d8021f8f0ec9800ae7648 Signed-off-by: paul luse Reviewed-on: https://review.gerrithub.io/427560 Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto --- lib/bdev/crypto/vbdev_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bdev/crypto/vbdev_crypto.c b/lib/bdev/crypto/vbdev_crypto.c index 6711ca6ba..506ccf87a 100644 --- a/lib/bdev/crypto/vbdev_crypto.c +++ b/lib/bdev/crypto/vbdev_crypto.c @@ -1403,7 +1403,7 @@ vbdev_crypto_claim(struct spdk_bdev *bdev) TAILQ_INSERT_TAIL(&g_vbdev_crypto, vbdev, link); spdk_io_device_register(vbdev, crypto_bdev_ch_create_cb, crypto_bdev_ch_destroy_cb, - sizeof(struct crypto_io_channel), name->bdev_name); + sizeof(struct crypto_io_channel), vbdev->crypto_bdev.name); rc = spdk_bdev_open(bdev, true, vbdev_crypto_examine_hotremove_cb, bdev, &vbdev->base_desc);