target: remove transport_generic_process_write
authorChristoph Hellwig <hch@infradead.org>
Sun, 8 Jul 2012 19:58:39 +0000 (15:58 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:35:16 +0000 (17:35 -0700)
Just call target_execute_cmd directly.  Also, convert loopback, sbp,
usb-gadget to use the newly exported target_execute_cmd().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c
drivers/target/sbp/sbp_target.c
drivers/target/target_core_transport.c
drivers/usb/gadget/tcm_usb_gadget.c
include/target/target_core_fabric.h

index f65dc9db859655250afdee583335fd73700f8e53..5491c632a15ed9073fb1b02efdf6b3ac095c57f8 100644 (file)
@@ -778,7 +778,7 @@ static int tcm_loop_write_pending(struct se_cmd *se_cmd)
         * We now tell TCM to add this WRITE CDB directly into the TCM storage
         * object execution queue.
         */
-       transport_generic_process_write(se_cmd);
+       target_execute_cmd(se_cmd);
        return 0;
 }
 
index 7e6136e2ce81dc256babc191fab05953aabf6bfc..0848c4ca2a324518e7b966f553918f98dbf451cb 100644 (file)
@@ -1784,8 +1784,7 @@ static int sbp_write_pending(struct se_cmd *se_cmd)
                return ret;
        }
 
-       transport_generic_process_write(se_cmd);
-
+       target_execute_cmd(se_cmd);
        return 0;
 }
 
index 3f20fbd88cd42e98c6ddbfdf973fce95fbb7d803..aeb2d576dc00784e678ec0f6d502939ce9ce4198 100644 (file)
@@ -1860,7 +1860,7 @@ static void __target_execute_cmd(struct se_cmd *cmd)
        }
 }
 
-static void target_execute_cmd(struct se_cmd *cmd)
+void target_execute_cmd(struct se_cmd *cmd)
 {
        struct se_device *dev = cmd->se_dev;
 
@@ -1950,6 +1950,7 @@ execute:
         */
        __target_execute_cmd(cmd);
 }
+EXPORT_SYMBOL(target_execute_cmd);
 
 /*
  * Used to obtain Sense Data from underlying Linux/SCSI struct scsi_cmnd
@@ -2500,16 +2501,6 @@ out_fail:
 }
 EXPORT_SYMBOL(transport_generic_new_cmd);
 
-/*     transport_generic_process_write():
- *
- *
- */
-void transport_generic_process_write(struct se_cmd *cmd)
-{
-       target_execute_cmd(cmd);
-}
-EXPORT_SYMBOL(transport_generic_process_write);
-
 static void transport_write_pending_qf(struct se_cmd *cmd)
 {
        int ret;
@@ -3321,7 +3312,7 @@ get_cmd:
                        }
                        break;
                case TRANSPORT_PROCESS_WRITE:
-                       transport_generic_process_write(cmd);
+                       target_execute_cmd(cmd);
                        break;
                case TRANSPORT_PROCESS_TMR:
                        transport_generic_do_tmr(cmd);
index c46439c8dd7462b2ba39e38f7129a9a1fa10ab41..031d44e86ec3a86abac4b2aeb5ead222d990246d 100644 (file)
@@ -294,7 +294,7 @@ static int bot_send_write_request(struct usbg_cmd *cmd)
                pr_err("%s(%d)\n", __func__, __LINE__);
 
        wait_for_completion(&cmd->write_complete);
-       transport_generic_process_write(se_cmd);
+       target_execute_cmd(se_cmd);
 cleanup:
        return ret;
 }
@@ -725,7 +725,7 @@ static int uasp_send_write_request(struct usbg_cmd *cmd)
        }
 
        wait_for_completion(&cmd->write_complete);
-       transport_generic_process_write(se_cmd);
+       target_execute_cmd(se_cmd);
 cleanup:
        return ret;
 }
index c78a23333c4fb801c72e86a55b05fd7e7bf66f67..59b4afb83ae1763f520557c7c8c06fd6e96ed82b 100644 (file)
@@ -121,7 +121,7 @@ int transport_generic_map_mem_to_cmd(struct se_cmd *cmd,
                struct scatterlist *, u32, struct scatterlist *, u32);
 int    transport_generic_new_cmd(struct se_cmd *);
 
-void   transport_generic_process_write(struct se_cmd *);
+void   target_execute_cmd(struct se_cmd *cmd);
 
 void   transport_generic_free_cmd(struct se_cmd *, int);