diff options
author | Christoph Hellwig <hch@lst.de> | 2014-11-13 09:08:42 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-24 08:45:27 -0500 |
commit | db5ed4dfd5dd0142ec36ff7b335e0ec3b836b3e6 (patch) | |
tree | 6cae824b5c9e5a7fd9d213e3f9c2b1c7dc8b7b8a /include/scsi | |
parent | 1e6f2416044c062a56091ebf8d76760956dd5872 (diff) |
scsi: drop reason argument from ->change_queue_depth
Drop the now unused reason argument from the ->change_queue_depth method.
Also add a return value to scsi_adjust_queue_depth, and rename it to
scsi_change_queue_depth now that it can be used as the default
->change_queue_depth implementation.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/libfc.h | 1 | ||||
-rw-r--r-- | include/scsi/libiscsi.h | 2 | ||||
-rw-r--r-- | include/scsi/libsas.h | 3 | ||||
-rw-r--r-- | include/scsi/scsi_device.h | 2 | ||||
-rw-r--r-- | include/scsi/scsi_host.h | 8 |
5 files changed, 4 insertions, 12 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index 2e0cf568a9c1..93d14daf0994 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h | |||
@@ -1105,7 +1105,6 @@ int fc_eh_abort(struct scsi_cmnd *); | |||
1105 | int fc_eh_device_reset(struct scsi_cmnd *); | 1105 | int fc_eh_device_reset(struct scsi_cmnd *); |
1106 | int fc_eh_host_reset(struct scsi_cmnd *); | 1106 | int fc_eh_host_reset(struct scsi_cmnd *); |
1107 | int fc_slave_alloc(struct scsi_device *); | 1107 | int fc_slave_alloc(struct scsi_device *); |
1108 | int fc_change_queue_depth(struct scsi_device *, int qdepth, int reason); | ||
1109 | 1108 | ||
1110 | /* | 1109 | /* |
1111 | * ELS/CT interface | 1110 | * ELS/CT interface |
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 728c9ad9feb0..4d1c46aac331 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -378,8 +378,6 @@ struct iscsi_host { | |||
378 | /* | 378 | /* |
379 | * scsi host template | 379 | * scsi host template |
380 | */ | 380 | */ |
381 | extern int iscsi_change_queue_depth(struct scsi_device *sdev, int depth, | ||
382 | int reason); | ||
383 | extern int iscsi_eh_abort(struct scsi_cmnd *sc); | 381 | extern int iscsi_eh_abort(struct scsi_cmnd *sc); |
384 | extern int iscsi_eh_recover_target(struct scsi_cmnd *sc); | 382 | extern int iscsi_eh_recover_target(struct scsi_cmnd *sc); |
385 | extern int iscsi_eh_session_reset(struct scsi_cmnd *sc); | 383 | extern int iscsi_eh_session_reset(struct scsi_cmnd *sc); |
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index ef7872c20da9..1f8b33ec612f 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -704,8 +704,7 @@ int sas_queue_up(struct sas_task *task); | |||
704 | extern int sas_queuecommand(struct Scsi_Host * ,struct scsi_cmnd *); | 704 | extern int sas_queuecommand(struct Scsi_Host * ,struct scsi_cmnd *); |
705 | extern int sas_target_alloc(struct scsi_target *); | 705 | extern int sas_target_alloc(struct scsi_target *); |
706 | extern int sas_slave_configure(struct scsi_device *); | 706 | extern int sas_slave_configure(struct scsi_device *); |
707 | extern int sas_change_queue_depth(struct scsi_device *, int new_depth, | 707 | extern int sas_change_queue_depth(struct scsi_device *, int new_depth); |
708 | int reason); | ||
709 | extern int sas_change_queue_type(struct scsi_device *, int qt); | 708 | extern int sas_change_queue_type(struct scsi_device *, int qt); |
710 | extern int sas_bios_param(struct scsi_device *, | 709 | extern int sas_bios_param(struct scsi_device *, |
711 | struct block_device *, | 710 | struct block_device *, |
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 0aeaa003c3c1..6364e23454dd 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -380,7 +380,7 @@ extern struct scsi_device *__scsi_iterate_devices(struct Scsi_Host *, | |||
380 | #define __shost_for_each_device(sdev, shost) \ | 380 | #define __shost_for_each_device(sdev, shost) \ |
381 | list_for_each_entry((sdev), &((shost)->__devices), siblings) | 381 | list_for_each_entry((sdev), &((shost)->__devices), siblings) |
382 | 382 | ||
383 | extern void scsi_adjust_queue_depth(struct scsi_device *, int); | 383 | extern int scsi_change_queue_depth(struct scsi_device *, int); |
384 | extern int scsi_track_queue_full(struct scsi_device *, int); | 384 | extern int scsi_track_queue_full(struct scsi_device *, int); |
385 | 385 | ||
386 | extern int scsi_set_medium_removal(struct scsi_device *, char); | 386 | extern int scsi_set_medium_removal(struct scsi_device *, char); |
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index a0b13a5cd25e..c8a462ef9a4e 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -46,10 +46,6 @@ struct blk_queue_tags; | |||
46 | #define DISABLE_CLUSTERING 0 | 46 | #define DISABLE_CLUSTERING 0 |
47 | #define ENABLE_CLUSTERING 1 | 47 | #define ENABLE_CLUSTERING 1 |
48 | 48 | ||
49 | enum { | ||
50 | SCSI_QDEPTH_DEFAULT, /* default requested change, e.g. from sysfs */ | ||
51 | }; | ||
52 | |||
53 | struct scsi_host_template { | 49 | struct scsi_host_template { |
54 | struct module *module; | 50 | struct module *module; |
55 | const char *name; | 51 | const char *name; |
@@ -193,7 +189,7 @@ struct scsi_host_template { | |||
193 | * Things currently recommended to be handled at this time include: | 189 | * Things currently recommended to be handled at this time include: |
194 | * | 190 | * |
195 | * 1. Setting the device queue depth. Proper setting of this is | 191 | * 1. Setting the device queue depth. Proper setting of this is |
196 | * described in the comments for scsi_adjust_queue_depth. | 192 | * described in the comments for scsi_change_queue_depth. |
197 | * 2. Determining if the device supports the various synchronous | 193 | * 2. Determining if the device supports the various synchronous |
198 | * negotiation protocols. The device struct will already have | 194 | * negotiation protocols. The device struct will already have |
199 | * responded to INQUIRY and the results of the standard items | 195 | * responded to INQUIRY and the results of the standard items |
@@ -279,7 +275,7 @@ struct scsi_host_template { | |||
279 | * | 275 | * |
280 | * Status: OPTIONAL | 276 | * Status: OPTIONAL |
281 | */ | 277 | */ |
282 | int (* change_queue_depth)(struct scsi_device *, int, int); | 278 | int (* change_queue_depth)(struct scsi_device *, int); |
283 | 279 | ||
284 | /* | 280 | /* |
285 | * Fill in this function to allow the changing of tag types | 281 | * Fill in this function to allow the changing of tag types |