]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: pm80xx: Increase reserved tags from 8 to 128
authorIgor Pylypiv <ipylypiv@google.com>
Tue, 26 Nov 2024 22:49:23 +0000 (22:49 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 4 Dec 2024 19:46:58 +0000 (14:46 -0500)
commitb64004dbcd239d5eeac0b41c167a306291510d55
tree039702db034cefc7d68ab4394cc9818a9eb9b7a7
parent4c567a9d0e009c998125d549dc53ab0d21724a55
scsi: pm80xx: Increase reserved tags from 8 to 128

Increase the number of reserved tags to prevent command processing failures
when the driver is under stress. 8 reserved tags are quickly getting all
used up leading to errors when command completions are delayed.

The driver needs ~512 ccbs/tags for maximum I/O utilization:

  16 (max disks) * 32 (max SATA queue depth) = ~512 ccbs/tags.

By reserving 128 tags the driver will still have plenty of tags/ccbs left:

  1024 (max ccbs) - 128 (reserved slot) = 896 tags/ccbs left.

Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Signed-off-by: Salomon Dushimirimana <salomondush@google.com>
Link: https://lore.kernel.org/r/20241126224923.973528-1-salomondush@google.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_defs.h