scsi: lpfc: Code cleanup for lpfc_max_scsicmpl_time parameter
authorJames Smart <[email protected]>
Thu, 13 Oct 2016 22:06:11 +0000 (15:06 -0700)
committerMartin K. Petersen <[email protected]>
Tue, 8 Nov 2016 22:29:50 +0000 (17:29 -0500)
Code cleanup for lpfc_max_scsicmpl_time parameter

Signed-off-by: Dick Kennedy <[email protected]>
Signed-off-by: James Smart <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/lpfc/lpfc_attr.c

index 81b1fafd4f976f3286ffbe419593c536a338c817..3051e6628a6709ad340fa53cce67a720fada7004 100644 (file)
@@ -4393,12 +4393,10 @@ LPFC_VPORT_ATTR_RW(first_burst_size, 0, 0, 65536,
 # to limit the I/O completion time to the parameter value.
 # The value is set in milliseconds.
 */
-static int lpfc_max_scsicmpl_time;
-module_param(lpfc_max_scsicmpl_time, int, S_IRUGO);
-MODULE_PARM_DESC(lpfc_max_scsicmpl_time,
+LPFC_VPORT_ATTR(max_scsicmpl_time, 0, 0, 60000,
        "Use command completion time to control queue depth");
+
 lpfc_vport_param_show(max_scsicmpl_time);
-lpfc_vport_param_init(max_scsicmpl_time, 0, 0, 60000);
 static int
 lpfc_max_scsicmpl_time_set(struct lpfc_vport *vport, int val)
 {