diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-01-25 13:34:55 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-02-04 21:34:49 -0500 |
commit | 1e65cc1631c187c4607e9a2067769791be529ce6 (patch) | |
tree | 78ede4b78d0b84d70cc6a375a8eb89216230863b /drivers/target | |
parent | 0300b1147e528fe6f6b0632b0ef353a87810dabf (diff) |
scsi: target/iscsi: Rename a function and a function pointer
Having both a function and a function pointer member with the same
name (iscsit_release_cmd) is confusing. Hence rename the function pointer
member.
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/iscsi/cxgbit/cxgbit.h | 2 | ||||
-rw-r--r-- | drivers/target/iscsi/cxgbit/cxgbit_ddp.c | 2 | ||||
-rw-r--r-- | drivers/target/iscsi/cxgbit/cxgbit_main.c | 2 | ||||
-rw-r--r-- | drivers/target/iscsi/iscsi_target_util.c | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/target/iscsi/cxgbit/cxgbit.h b/drivers/target/iscsi/cxgbit/cxgbit.h index 417b9e66b0cd..3cca22e19964 100644 --- a/drivers/target/iscsi/cxgbit/cxgbit.h +++ b/drivers/target/iscsi/cxgbit/cxgbit.h | |||
@@ -345,7 +345,7 @@ struct cxgbit_device *cxgbit_find_device(struct net_device *, u8 *); | |||
345 | int cxgbit_ddp_init(struct cxgbit_device *); | 345 | int cxgbit_ddp_init(struct cxgbit_device *); |
346 | int cxgbit_setup_conn_pgidx(struct cxgbit_sock *, u32); | 346 | int cxgbit_setup_conn_pgidx(struct cxgbit_sock *, u32); |
347 | int cxgbit_reserve_ttt(struct cxgbit_sock *, struct iscsi_cmd *); | 347 | int cxgbit_reserve_ttt(struct cxgbit_sock *, struct iscsi_cmd *); |
348 | void cxgbit_release_cmd(struct iscsi_conn *, struct iscsi_cmd *); | 348 | void cxgbit_unmap_cmd(struct iscsi_conn *, struct iscsi_cmd *); |
349 | 349 | ||
350 | static inline | 350 | static inline |
351 | struct cxgbi_ppm *cdev2ppm(struct cxgbit_device *cdev) | 351 | struct cxgbi_ppm *cdev2ppm(struct cxgbit_device *cdev) |
diff --git a/drivers/target/iscsi/cxgbit/cxgbit_ddp.c b/drivers/target/iscsi/cxgbit/cxgbit_ddp.c index 76a262674c8d..d57fd3ed3fa5 100644 --- a/drivers/target/iscsi/cxgbit/cxgbit_ddp.c +++ b/drivers/target/iscsi/cxgbit/cxgbit_ddp.c | |||
@@ -263,7 +263,7 @@ out: | |||
263 | r2t->targ_xfer_tag = ttinfo->tag; | 263 | r2t->targ_xfer_tag = ttinfo->tag; |
264 | } | 264 | } |
265 | 265 | ||
266 | void cxgbit_release_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd) | 266 | void cxgbit_unmap_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd) |
267 | { | 267 | { |
268 | struct cxgbit_cmd *ccmd = iscsit_priv_cmd(cmd); | 268 | struct cxgbit_cmd *ccmd = iscsit_priv_cmd(cmd); |
269 | 269 | ||
diff --git a/drivers/target/iscsi/cxgbit/cxgbit_main.c b/drivers/target/iscsi/cxgbit/cxgbit_main.c index c011c826fc26..4a7bb0b49d17 100644 --- a/drivers/target/iscsi/cxgbit/cxgbit_main.c +++ b/drivers/target/iscsi/cxgbit/cxgbit_main.c | |||
@@ -678,7 +678,7 @@ static struct iscsit_transport cxgbit_transport = { | |||
678 | .iscsit_get_r2t_ttt = cxgbit_get_r2t_ttt, | 678 | .iscsit_get_r2t_ttt = cxgbit_get_r2t_ttt, |
679 | .iscsit_get_rx_pdu = cxgbit_get_rx_pdu, | 679 | .iscsit_get_rx_pdu = cxgbit_get_rx_pdu, |
680 | .iscsit_validate_params = cxgbit_validate_params, | 680 | .iscsit_validate_params = cxgbit_validate_params, |
681 | .iscsit_release_cmd = cxgbit_release_cmd, | 681 | .iscsit_unmap_cmd = cxgbit_unmap_cmd, |
682 | .iscsit_aborted_task = iscsit_aborted_task, | 682 | .iscsit_aborted_task = iscsit_aborted_task, |
683 | .iscsit_get_sup_prot_ops = cxgbit_get_sup_prot_ops, | 683 | .iscsit_get_sup_prot_ops = cxgbit_get_sup_prot_ops, |
684 | }; | 684 | }; |
diff --git a/drivers/target/iscsi/iscsi_target_util.c b/drivers/target/iscsi/iscsi_target_util.c index 58886d4b33cb..3ac494f63a0b 100644 --- a/drivers/target/iscsi/iscsi_target_util.c +++ b/drivers/target/iscsi/iscsi_target_util.c | |||
@@ -760,8 +760,8 @@ void __iscsit_free_cmd(struct iscsi_cmd *cmd, bool check_queues) | |||
760 | iscsit_remove_cmd_from_response_queue(cmd, conn); | 760 | iscsit_remove_cmd_from_response_queue(cmd, conn); |
761 | } | 761 | } |
762 | 762 | ||
763 | if (conn && conn->conn_transport->iscsit_release_cmd) | 763 | if (conn && conn->conn_transport->iscsit_unmap_cmd) |
764 | conn->conn_transport->iscsit_release_cmd(conn, cmd); | 764 | conn->conn_transport->iscsit_unmap_cmd(conn, cmd); |
765 | } | 765 | } |
766 | 766 | ||
767 | void iscsit_free_cmd(struct iscsi_cmd *cmd, bool shutdown) | 767 | void iscsit_free_cmd(struct iscsi_cmd *cmd, bool shutdown) |