]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: target: Move I/O path stats to per CPU
authorMike Christie <michael.christie@oracle.com>
Thu, 24 Apr 2025 03:26:32 +0000 (22:26 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Apr 2025 01:47:55 +0000 (21:47 -0400)
commit9cf2317b795d6cde0fccb8744b5a080a9586020e
tree3081c6a4f985736babdceda2ff8596ab000d5752
parent0af2f6be1b4281385b618cb86ad946eded089ac8
scsi: target: Move I/O path stats to per CPU

The atomic use in the main I/O path is causing perf issues when using
higher performance backend devices and multiple queues. This moves the
stats to per CPU. Combined with the next patch that moves the
non_ordered/delayed_cmd_count to per CPU, IOPS by up to 33% for 8K IOS
when using 4 or more queues.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20250424032741.16216-2-michael.christie@oracle.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_device.c
drivers/target/target_core_stat.c
include/target/target_core_base.h