summaryrefslogtreecommitdiff
path: root/drivers/scsi/lpfc/lpfc.h
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2018-09-10 10:30:49 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2018-09-11 20:37:33 -0400
commit18027a8ccca5b9189f49be0d8b84dbc717084a26 (patch)
treeaa4dbf9ac409f149884c6df5b1d2a1950f7e427b /drivers/scsi/lpfc/lpfc.h
parent2879265f514b1f4154288243c91438ddbedb3ed4 (diff)
downloadlwn-18027a8ccca5b9189f49be0d8b84dbc717084a26.tar.gz
lwn-18027a8ccca5b9189f49be0d8b84dbc717084a26.zip
scsi: lpfc: reduce locking when updating statistics
Currently, on each io completion, the stats update routine indiscriminately holds a lock. While holding the adapter-wide lock, checks are made to check whether status are being tracked. When disabled (the default), the locking wasted a lot of cycles. Check for stats enablement before taking the lock. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc.h')
0 files changed, 0 insertions, 0 deletions