summaryrefslogtreecommitdiff
path: root/drivers/scsi/esp_scsi.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-11-24 17:37:20 +0300
committerChristoph Hellwig <hch@lst.de>2014-11-24 18:10:23 +0300
commit3707a186c8970e3c4f3c8d9ccf4230b8657e919f (patch)
treecacc0aaabc663d438b1944f06e52d58b5cb56684 /drivers/scsi/esp_scsi.h
parenta87bf29362c763cf35faa17154b699471a8b902e (diff)
downloadlinux-3707a186c8970e3c4f3c8d9ccf4230b8657e919f.tar.xz
esp_scsi: make number of tags configurable
Add a field 'num_tags' to the esp structure to allow drivers to overwrite the number of avialable tags if required. Default is ESP_DEFAULT_TAGS. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/esp_scsi.h')
-rw-r--r--drivers/scsi/esp_scsi.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/esp_scsi.h b/drivers/scsi/esp_scsi.h
index b5862e463455..975d2934d42a 100644
--- a/drivers/scsi/esp_scsi.h
+++ b/drivers/scsi/esp_scsi.h
@@ -283,7 +283,6 @@ struct esp_cmd_entry {
struct completion *eh_done;
};
-/* XXX make this configurable somehow XXX */
#define ESP_DEFAULT_TAGS 16
#define ESP_MAX_TARGET 16
@@ -445,7 +444,7 @@ struct esp {
u8 prev_soff;
u8 prev_stp;
u8 prev_cfg3;
- u8 __pad;
+ u8 num_tags;
struct list_head esp_cmd_pool;