diff options
| author | James Smart <[email protected]> | 2018-09-10 10:30:49 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2018-09-11 20:37:33 -0400 |
| commit | 18027a8ccca5b9189f49be0d8b84dbc717084a26 (patch) | |
| tree | aa4dbf9ac409f149884c6df5b1d2a1950f7e427b /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 2879265f514b1f4154288243c91438ddbedb3ed4 (diff) | |
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 <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions