[PATCH 9/9] target: remove dead call to transport_emulate_control_cdb in rd driver

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

 



We'll never reach a non-pscsi backend for non-data CDBs these days.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: lio-core-2.6/drivers/target/target_core_rd.c
===================================================================
--- lio-core-2.6.orig/drivers/target/target_core_rd.c	2010-11-08 16:31:38.968196346 +0100
+++ lio-core-2.6/drivers/target/target_core_rd.c	2010-11-08 16:31:42.041529681 +0100
@@ -972,9 +972,6 @@ static int rd_DIRECT_allocate_DMA(struct
  */
 static int rd_DIRECT_do_task(struct se_task *task)
 {
-	if (!(TASK_CMD(task)->se_cmd_flags & SCF_SCSI_DATA_SG_IO_CDB))
-		return transport_emulate_control_cdb(task);
-
 	/*
 	 * At this point the locally allocated RD tables have been mapped
 	 * to struct se_mem elements in rd_DIRECT_do_se_mem_map().
Index: lio-core-2.6/drivers/target/target_core_transport.c
===================================================================
--- lio-core-2.6.orig/drivers/target/target_core_transport.c	2010-11-08 16:31:58.868196346 +0100
+++ lio-core-2.6/drivers/target/target_core_transport.c	2010-11-08 16:32:42.158196349 +0100
@@ -209,6 +209,7 @@ static int transport_generic_write_pendi
 static int transport_processing_thread(void *);
 static int transport_new_cmd_obj(struct se_cmd *cmd,
 		struct se_transform_info *ti, int post_execute);
+static int transport_emulate_control_cdb(struct se_task *task);
 
 static char *transport_passthrough_get_fabric_name(void)
 {
@@ -5462,7 +5463,7 @@ static int transport_generic_write_same(
  * Used by TCM subsystem plugins IBLOCK, FILEIO, and RAMDISK as a
  * generic non SCF_SCSI_DATA_SG_IO_CDB ops.
  */
-int transport_emulate_control_cdb(struct se_task *task)
+static int transport_emulate_control_cdb(struct se_task *task)
 {
 	struct se_cmd *cmd = TASK_CMD(task);
 	struct se_device *dev = SE_DEV(cmd);
Index: lio-core-2.6/include/target/target_core_transport.h
===================================================================
--- lio-core-2.6.orig/include/target/target_core_transport.h	2010-11-08 16:31:49.168196346 +0100
+++ lio-core-2.6/include/target/target_core_transport.h	2010-11-08 16:31:51.141529681 +0100
@@ -232,7 +232,6 @@ extern int transport_generic_emulate_mod
 extern int transport_generic_emulate_request_sense(struct se_cmd *,
 						   unsigned char *);
 extern int transport_get_sense_data(struct se_cmd *);
-extern int transport_emulate_control_cdb(struct se_task *);
 extern struct se_cmd *transport_allocate_passthrough(unsigned char *, int, u32,
 						void *, u32, u32, void *);
 extern void transport_passthrough_release(struct se_cmd *);

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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux