scsi: target: Have drivers report if they support direct submissions
[linux-2.6-block.git] / include / target / target_core_fabric.h
index 2a6c4c935666aaf212df3a61757e274c4c4b4fef..dcd7d76d2f3010c7a0dba16a4fad5c871ae7f4d4 100644 (file)
@@ -118,6 +118,15 @@ struct target_core_fabric_ops {
         * its entirety before a command is aborted.
         */
        unsigned int write_pending_must_be_called:1;
+       /*
+        * Set this if the driver supports submitting commands to the backend
+        * from target_submit/target_submit_cmd.
+        */
+       unsigned int direct_submit_supp:1;
+       /*
+        * Set this to a target_submit_type value.
+        */
+       u8 default_submit_type;
 };
 
 int target_register_template(const struct target_core_fabric_ops *fo);