Re: [PATCH 30/42] target: Rename get_cdb_count to allocate_tasks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2011-05-27 at 12:07 -0700, Andy Grover wrote:
> To be more in-line with what it actually does.
> 
> Signed-off-by: Andy Grover <agrover@xxxxxxxxxx>
> ---

Makes sense.  Committed as c0d1db84b

Thanks,

--nab

>  drivers/target/target_core_transport.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
> index 621fe63..b8ee2f6 100644
> --- a/drivers/target/target_core_transport.c
> +++ b/drivers/target/target_core_transport.c
> @@ -207,7 +207,7 @@ static int __transport_execute_tasks(struct se_device *dev);
>  static void transport_complete_task_attr(struct se_cmd *cmd);
>  static void transport_direct_request_timeout(struct se_cmd *cmd);
>  static void transport_free_dev_tasks(struct se_cmd *cmd);
> -static u32 transport_generic_get_cdb_count(struct se_cmd *cmd,
> +static u32 transport_allocate_tasks(struct se_cmd *cmd,
>  		unsigned long long starting_lba, u32 sectors,
>  		enum dma_data_direction data_direction,
>  		struct list_head *mem_list, int set_counts);
> @@ -4016,7 +4016,7 @@ static int transport_new_cmd_obj(struct se_cmd *cmd)
>  		 */
>  		if (!list_empty(&cmd->t_mem_bidi_list) &&
>  		    (dev->transport->transport_type != TRANSPORT_PLUGIN_PHBA_PDEV)) {
> -			rc = transport_generic_get_cdb_count(cmd,
> +			rc = transport_allocate_tasks(cmd,
>  				cmd->t_task_lba,
>  				transport_cmd_get_valid_sectors(cmd),
>  				DMA_FROM_DEVICE, &cmd->t_mem_bidi_list,
> @@ -4033,7 +4033,7 @@ static int transport_new_cmd_obj(struct se_cmd *cmd)
>  		 * Setup the tasks and memory from cmd->t_mem_list
>  		 * Note for BIDI transfers this will contain the WRITE payload
>  		 */
> -		task_cdbs = transport_generic_get_cdb_count(cmd,
> +		task_cdbs = transport_allocate_tasks(cmd,
>  				cmd->t_task_lba,
>  				transport_cmd_get_valid_sectors(cmd),
>  				cmd->data_direction, &cmd->t_mem_list,
> @@ -4488,7 +4488,7 @@ static int transport_do_se_mem_map(
>  /*
>   * Break up cmd into chunks transport can handle
>   */
> -static u32 transport_generic_get_cdb_count(
> +static u32 transport_allocate_tasks(
>  	struct se_cmd *cmd,
>  	unsigned long long lba,
>  	u32 sectors,
> -- 
> 1.7.1
> 

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux