From 081153a82cebab5c7ed139d6726c4dc7be6d6c36 Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Thu, 28 Nov 2019 12:14:21 -0500 Subject: [PATCH] lib/iscsi: Rename iscsi_conn_remove_lun() by iscsi_conn_hotremove_lun() We want to use poller for LUN hotplug in iSCSI library. According to the naming used in SCSI library, rename iscsi_conn_remove_lun by iscsi_conn_hotremove_lun. The next patch will iscsi_conn_remove_lun. Signed-off-by: Shuhei Matsumoto Change-Id: I08bb8c92db23ac3adcde4f39c0e812f3d97430d3 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/476114 Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Jim Harris Reviewed-by: Ziye Yang --- lib/iscsi/conn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index 55caff8e7..db8f28e9a 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -463,7 +463,7 @@ iscsi_conn_close_luns(struct spdk_iscsi_conn *conn) } static void -_iscsi_conn_remove_lun(void *ctx) +_iscsi_conn_hotremove_lun(void *ctx) { struct spdk_iscsi_lun *iscsi_lun = ctx; struct spdk_iscsi_conn *conn = iscsi_lun->conn; @@ -485,7 +485,7 @@ _iscsi_conn_remove_lun(void *ctx) } static void -iscsi_conn_remove_lun(struct spdk_scsi_lun *lun, void *remove_ctx) +iscsi_conn_hotremove_lun(struct spdk_scsi_lun *lun, void *remove_ctx) { struct spdk_iscsi_conn *conn = remove_ctx; int lun_id = spdk_scsi_lun_get_id(lun); @@ -498,7 +498,7 @@ iscsi_conn_remove_lun(struct spdk_scsi_lun *lun, void *remove_ctx) } spdk_thread_send_msg(spdk_io_channel_get_thread(spdk_io_channel_from_ctx(conn->pg)), - _iscsi_conn_remove_lun, iscsi_lun); + _iscsi_conn_hotremove_lun, iscsi_lun); } static int @@ -516,7 +516,7 @@ iscsi_conn_open_lun(struct spdk_iscsi_conn *conn, int lun_id, iscsi_lun->conn = conn; iscsi_lun->lun = lun; - rc = spdk_scsi_lun_open(lun, iscsi_conn_remove_lun, conn, &iscsi_lun->desc); + rc = spdk_scsi_lun_open(lun, iscsi_conn_hotremove_lun, conn, &iscsi_lun->desc); if (rc != 0) { free(iscsi_lun); return rc;