aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block/dasd_int.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2013-01-30 04:26:12 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-07-01 11:31:17 -0400
commit1f1ee9ad6b298400c7a44f860231ac1d3cb7bfd6 (patch)
tree969a5275d669b6af5ae09d173e19e19256e74903 /drivers/s390/block/dasd_int.h
parentb99a946de6a988a38043180d42e6b7a2f07d4f57 (diff)
s390/dasd: make number of retries configurable
Instead of having the number of retries hard-coded in the various functions we should be using a default retry value, which can be modified via sysfs. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Stefan Weinhuber <wein@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block/dasd_int.h')
-rw-r--r--drivers/s390/block/dasd_int.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/block/dasd_int.h b/drivers/s390/block/dasd_int.h
index 0785bd9bd5b6..ad42075868c7 100644
--- a/drivers/s390/block/dasd_int.h
+++ b/drivers/s390/block/dasd_int.h
@@ -224,6 +224,8 @@ struct dasd_ccw_req {
224/* default expiration time*/ 224/* default expiration time*/
225#define DASD_EXPIRES 300 225#define DASD_EXPIRES 300
226#define DASD_EXPIRES_MAX 40000000 226#define DASD_EXPIRES_MAX 40000000
227#define DASD_RETRIES 256
228#define DASD_RETRIES_MAX 32768
227 229
228/* per dasd_ccw_req flags */ 230/* per dasd_ccw_req flags */
229#define DASD_CQR_FLAGS_USE_ERP 0 /* use ERP for this request */ 231#define DASD_CQR_FLAGS_USE_ERP 0 /* use ERP for this request */
@@ -466,6 +468,7 @@ struct dasd_device {
466 468
467 /* default expiration time in s */ 469 /* default expiration time in s */
468 unsigned long default_expires; 470 unsigned long default_expires;
471 unsigned long default_retries;
469 472
470 struct dentry *debugfs_dentry; 473 struct dentry *debugfs_dentry;
471 struct dasd_profile profile; 474 struct dasd_profile profile;