diff options
author | Andy Grover <agrover@redhat.com> | 2012-04-03 18:51:20 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-04-14 20:40:36 -0400 |
commit | a12f41f8412ff57057906ebbe146fda37db158ac (patch) | |
tree | e3138df9188c5fff3156e53c8f6781240ee062cb /drivers/target/iscsi | |
parent | 8b1e1244db85d58f7c612870ec2c1afd9098ae93 (diff) |
target: Rename target_allocate_tasks to target_setup_cmd_from_cdb
This patch renames a horribly misnamed function that no longer allocate
tasks to something more descriptive for it's modern use in target core.
(nab: Fix up ib_srpt to use this as well ahead of a target_submit_cmd
conversion)
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 179aaceeb732..d68363a79db7 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c | |||
@@ -1016,13 +1016,8 @@ done: | |||
1016 | send_check_condition = 1; | 1016 | send_check_condition = 1; |
1017 | goto attach_cmd; | 1017 | goto attach_cmd; |
1018 | } | 1018 | } |
1019 | /* | 1019 | |
1020 | * The Initiator Node has access to the LUN (the addressing method | 1020 | transport_ret = target_setup_cmd_from_cdb(&cmd->se_cmd, hdr->cdb); |
1021 | * is handled inside of iscsit_get_lun_for_cmd()). Now it's time to | ||
1022 | * allocate 1->N transport tasks (depending on sector count and | ||
1023 | * maximum request size the physical HBA(s) can handle. | ||
1024 | */ | ||
1025 | transport_ret = transport_generic_allocate_tasks(&cmd->se_cmd, hdr->cdb); | ||
1026 | if (transport_ret == -ENOMEM) { | 1021 | if (transport_ret == -ENOMEM) { |
1027 | return iscsit_add_reject_from_cmd( | 1022 | return iscsit_add_reject_from_cmd( |
1028 | ISCSI_REASON_BOOKMARK_NO_RESOURCES, | 1023 | ISCSI_REASON_BOOKMARK_NO_RESOURCES, |