Commit cb7cc0c
scsi: ufs: core: Only collect timestamps if monitoring is enabled
Every ktime_get() call in the hot path has a measurable impact on IOPS.
Hence, only collect timestamps if the monitoring functionality is
enabled.
See also commit 1d8613a ("scsi: ufs: core: Introduce HBA
performance monitor sysfs nodes").
Cc: Can Guo <cang@codeaurora.org>
Cc: Bean Huo <beanhuo@micron.com>
Cc: Daejun Park <daejun7.park@samsung.com>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20250819153958.2255907-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 6f4b102 commit cb7cc0c
1 file changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
613 | 615 | | |
614 | 616 | | |
615 | 617 | | |
| |||
2356 | 2358 | | |
2357 | 2359 | | |
2358 | 2360 | | |
2359 | | - | |
2360 | | - | |
2361 | | - | |
2362 | | - | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
2363 | 2367 | | |
2364 | 2368 | | |
2365 | 2369 | | |
| |||
5619 | 5623 | | |
5620 | 5624 | | |
5621 | 5625 | | |
5622 | | - | |
5623 | | - | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
5624 | 5630 | | |
5625 | 5631 | | |
5626 | 5632 | | |
| |||
0 commit comments