aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2010-09-15 17:52:32 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-10-07 18:09:44 -0400
commit43ca910a9c90566308f39f51ac03a55f94a5f83c (patch)
treea0ced12dbeebd12b0b5ae113ccfc6c6b823bb9e8 /include/scsi
parent0af5d708aae3aef1f98a1c689007b92db2c10277 (diff)
[SCSI] fc class: add fc host dev loss sysfs file
This adds a fc host dev loss sysfs file. Instead of calling into the driver using the get_host_def_dev_loss_tmo callback, we allow drivers to init the dev loss like is done for other fc host params, and then the fc class will handle updating the value if the user writes to the new sysfs file. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_transport_fc.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h
index 9f98fca9b763..59816fe31e68 100644
--- a/include/scsi/scsi_transport_fc.h
+++ b/include/scsi/scsi_transport_fc.h
@@ -496,7 +496,7 @@ struct fc_host_attrs {
496 u64 fabric_name; 496 u64 fabric_name;
497 char symbolic_name[FC_SYMBOLIC_NAME_SIZE]; 497 char symbolic_name[FC_SYMBOLIC_NAME_SIZE];
498 char system_hostname[FC_SYMBOLIC_NAME_SIZE]; 498 char system_hostname[FC_SYMBOLIC_NAME_SIZE];
499 u32 def_dev_loss_tmo; 499 u32 dev_loss_tmo;
500 500
501 /* Private (Transport-managed) Attributes */ 501 /* Private (Transport-managed) Attributes */
502 enum fc_tgtid_binding_type tgtid_bind_type; 502 enum fc_tgtid_binding_type tgtid_bind_type;
@@ -581,8 +581,8 @@ struct fc_host_attrs {
581 (((struct fc_host_attrs *)(x)->shost_data)->devloss_work_q_name) 581 (((struct fc_host_attrs *)(x)->shost_data)->devloss_work_q_name)
582#define fc_host_devloss_work_q(x) \ 582#define fc_host_devloss_work_q(x) \
583 (((struct fc_host_attrs *)(x)->shost_data)->devloss_work_q) 583 (((struct fc_host_attrs *)(x)->shost_data)->devloss_work_q)
584#define fc_host_def_dev_loss_tmo(x) \ 584#define fc_host_dev_loss_tmo(x) \
585 (((struct fc_host_attrs *)(x)->shost_data)->def_dev_loss_tmo) 585 (((struct fc_host_attrs *)(x)->shost_data)->dev_loss_tmo)
586 586
587 587
588struct fc_bsg_buffer { 588struct fc_bsg_buffer {
@@ -643,7 +643,6 @@ struct fc_function_template {
643 void (*get_host_fabric_name)(struct Scsi_Host *); 643 void (*get_host_fabric_name)(struct Scsi_Host *);
644 void (*get_host_symbolic_name)(struct Scsi_Host *); 644 void (*get_host_symbolic_name)(struct Scsi_Host *);
645 void (*set_host_system_hostname)(struct Scsi_Host *); 645 void (*set_host_system_hostname)(struct Scsi_Host *);
646 void (*get_host_def_dev_loss_tmo)(struct Scsi_Host *);
647 646
648 struct fc_host_statistics * (*get_fc_host_stats)(struct Scsi_Host *); 647 struct fc_host_statistics * (*get_fc_host_stats)(struct Scsi_Host *);
649 void (*reset_fc_host_stats)(struct Scsi_Host *); 648 void (*reset_fc_host_stats)(struct Scsi_Host *);