]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/scsi/hisi_sas/hisi_sas_main.c
scsi: hisi_sas: change slot index allocation mode
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 21 May 2018 10:09:14 +0000 (18:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 May 2018 02:40:31 +0000 (22:40 -0400)
commitfa3be0f23139ddc4dffbfdef6bbd118e30dfcafe
treec5129234d999f94cff6bd5b43076ec825e8bd0c6
parent757db2dae2c79b1f713043fcc13542683963fa82
scsi: hisi_sas: change slot index allocation mode

Currently we find the lowest available empty bit in the IPTT bitmap to
allocate the IPTT for a command.

To reduce possibility of hitting unknown SoC bugs and also aid in the
debugging of those same bugs, change the allocation mode.

The next allocation method is to use the next free slot adjacent to the
most recently allocated slot, in a round-robin fashion.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c