From 83249da4a8277229bb137780bfe01a2a4c41500f Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Thu, 17 Oct 2019 07:25:10 +0900 Subject: [PATCH] lib/iscsi: Rename PDU handling for Logout Request Rename iscsi_op_logout() to iscsi_pdu_hdr_op_logout() because Logout Request PDU has only header and doesn't have PDU payload handling. Signed-off-by: Shuhei Matsumoto Change-Id: Id788e5da56ee51b311cff2ec448c5cf0492ace13 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471009 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Changpeng Liu Reviewed-by: Jim Harris --- lib/iscsi/iscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iscsi/iscsi.c b/lib/iscsi/iscsi.c index c07f167b3..36799347e 100644 --- a/lib/iscsi/iscsi.c +++ b/lib/iscsi/iscsi.c @@ -2470,7 +2470,7 @@ iscsi_op_text(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu) } static int -iscsi_op_logout(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu) +iscsi_pdu_hdr_op_logout(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu) { struct spdk_iscsi_pdu *rsp_pdu; uint32_t task_tag; @@ -4697,7 +4697,7 @@ iscsi_execute(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu) break; case ISCSI_OP_LOGOUT: - rc = iscsi_op_logout(conn, pdu); + rc = iscsi_pdu_hdr_op_logout(conn, pdu); break; case ISCSI_OP_SCSI_DATAOUT: