Commit bb0f544
scsi: smartpqi: Improve accuracy/performance of raid-bypass-counter
The original implementation of this counter used an atomic variable.
However, this implementation negatively impacted performance in some
configurations.
Switch to using per_cpu variables.
Reviewed-by: Scott Benesh <[email protected]>
Reviewed-by: Scott Teel <[email protected]>
Reviewed-by: Mike McGowen <[email protected]>
Co-developed-by: Mahesh Rajashekhara <[email protected]>
Signed-off-by: Mahesh Rajashekhara <[email protected]>
Signed-off-by: Kevin Barnett <[email protected]>
Signed-off-by: Don Brace <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>1 parent 0e21e73 commit bb0f544
2 files changed
+27
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1158 | 1158 | | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | | - | |
| 1161 | + | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | 1164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1508 | 1508 | | |
1509 | 1509 | | |
1510 | 1510 | | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1511 | 1517 | | |
1512 | 1518 | | |
1513 | 1519 | | |
| |||
2099 | 2105 | | |
2100 | 2106 | | |
2101 | 2107 | | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
2102 | 2112 | | |
2103 | 2113 | | |
2104 | 2114 | | |
| |||
2121 | 2131 | | |
2122 | 2132 | | |
2123 | 2133 | | |
| 2134 | + | |
2124 | 2135 | | |
2125 | 2136 | | |
2126 | 2137 | | |
| |||
6007 | 6018 | | |
6008 | 6019 | | |
6009 | 6020 | | |
| 6021 | + | |
6010 | 6022 | | |
6011 | 6023 | | |
6012 | 6024 | | |
| |||
6053 | 6065 | | |
6054 | 6066 | | |
6055 | 6067 | | |
6056 | | - | |
| 6068 | + | |
| 6069 | + | |
6057 | 6070 | | |
6058 | 6071 | | |
6059 | 6072 | | |
| |||
7350 | 7363 | | |
7351 | 7364 | | |
7352 | 7365 | | |
7353 | | - | |
| 7366 | + | |
| 7367 | + | |
| 7368 | + | |
7354 | 7369 | | |
7355 | 7370 | | |
7356 | 7371 | | |
| |||
7366 | 7381 | | |
7367 | 7382 | | |
7368 | 7383 | | |
7369 | | - | |
| 7384 | + | |
| 7385 | + | |
| 7386 | + | |
| 7387 | + | |
| 7388 | + | |
| 7389 | + | |
| 7390 | + | |
| 7391 | + | |
7370 | 7392 | | |
7371 | 7393 | | |
7372 | 7394 | | |
7373 | | - | |
| 7395 | + | |
7374 | 7396 | | |
7375 | 7397 | | |
7376 | 7398 | | |
| |||
0 commit comments