]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: target: Move delayed/ordered tracking to per CPU
authorMike Christie <michael.christie@oracle.com>
Thu, 24 Apr 2025 03:26:33 +0000 (22:26 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Apr 2025 01:47:55 +0000 (21:47 -0400)
commit268975a87c7b6f6b0ceb62df236c1e1b08b89379
treec15403df63b052c45e9df54253adaaaca7d956e8
parent9cf2317b795d6cde0fccb8744b5a080a9586020e
scsi: target: Move delayed/ordered tracking to per CPU

The atomic use from the delayed/ordered tracking is causing perf issues
when using higher perf backend devices and multiple queues.  This moves
the values to a per CPU counter. Combined with the per CPU stats patch,
this improves IOPS by up to 33% for 8K IOS when using 4 or more queues
from the initiator.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20250424032741.16216-3-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_transport.c
include/target/target_core_base.h