[SCSI] add support for per-host cmd pools
[firefly-linux-kernel-4.4.55.git] / include / scsi / scsi_host.h
index 53075e5039e6e3ff2a246064e78394f790abbe69..94844fc77b9759f20c6f51c6bcb16e008f2167b3 100644 (file)
@@ -15,6 +15,7 @@ struct completion;
 struct module;
 struct scsi_cmnd;
 struct scsi_device;
+struct scsi_host_cmd_pool;
 struct scsi_target;
 struct Scsi_Host;
 struct scsi_host_cmd_pool;
@@ -524,6 +525,12 @@ struct scsi_host_template {
         *   scsi_netlink.h
         */
        u64 vendor_id;
+
+       /*
+        * Additional per-command data allocated for the driver.
+        */
+       unsigned int cmd_size;
+       struct scsi_host_cmd_pool *cmd_pool;
 };
 
 /*