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/infiniband | |
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/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/srpt/ib_srpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 1e3866eb80a8..e2c8198020de 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c | |||
@@ -1768,7 +1768,7 @@ static int srpt_handle_cmd(struct srpt_rdma_ch *ch, | |||
1768 | kref_put(&send_ioctx->kref, srpt_put_send_ioctx_kref); | 1768 | kref_put(&send_ioctx->kref, srpt_put_send_ioctx_kref); |
1769 | goto send_sense; | 1769 | goto send_sense; |
1770 | } | 1770 | } |
1771 | ret = transport_generic_allocate_tasks(cmd, srp_cmd->cdb); | 1771 | ret = target_setup_cmd_from_cdb(cmd, srp_cmd->cdb); |
1772 | if (ret < 0) { | 1772 | if (ret < 0) { |
1773 | kref_put(&send_ioctx->kref, srpt_put_send_ioctx_kref); | 1773 | kref_put(&send_ioctx->kref, srpt_put_send_ioctx_kref); |
1774 | if (cmd->se_cmd_flags & SCF_SCSI_RESERVATION_CONFLICT) { | 1774 | if (cmd->se_cmd_flags & SCF_SCSI_RESERVATION_CONFLICT) { |