From: James Smart Date: Thu, 13 Oct 2016 22:06:11 +0000 (-0700) Subject: scsi: lpfc: Code cleanup for lpfc_max_scsicmpl_time parameter X-Git-Tag: v4.1.12-92~2^2~82 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cf91fe18cd54dab4f8f77580f364cb849ac52083;p=users%2Fjedix%2Flinux-maple.git scsi: lpfc: Code cleanup for lpfc_max_scsicmpl_time parameter Orabug: 25486030 Code cleanup for lpfc_max_scsicmpl_time parameter Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Signed-off-by: Martin K. Petersen (cherry picked from commit ed5b152913971aeac12751f313655358ca2ab6e4) Signed-off-by: Brian Maly --- diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 96a0691d226d7..eaffb088d9d9c 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c @@ -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) {