diff options
author | James Smart | 2018-09-10 19:30:49 +0200 |
---|---|---|
committer | Martin K. Petersen | 2018-09-12 02:37:33 +0200 |
commit | 18027a8ccca5b9189f49be0d8b84dbc717084a26 (patch) | |
tree | aa4dbf9ac409f149884c6df5b1d2a1950f7e427b /drivers/scsi/lpfc/lpfc_attr.c | |
parent | scsi: lpfc: Fix errors in log messages. (diff) | |
download | kernel-qcow2-linux-18027a8ccca5b9189f49be0d8b84dbc717084a26.tar.gz kernel-qcow2-linux-18027a8ccca5b9189f49be0d8b84dbc717084a26.tar.xz kernel-qcow2-linux-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_attr.c')
0 files changed, 0 insertions, 0 deletions