scsi: ufs: ufshpb: Limit the number of in-flight map requests
authorAvri Altman <avri.altman@wdc.com>
Mon, 12 Jul 2021 09:50:36 +0000 (12:50 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 1 Aug 2021 20:05:15 +0000 (16:05 -0400)
commit33845a2d844be6157914cf81b7170e4b12a5bf17
tree2978a8d776105518438f52deec19679f1c64a57d
parent13c044e91678d6ef099285705261418bb7b0c748
scsi: ufs: ufshpb: Limit the number of in-flight map requests

In host control mode the host is the originator of map requests. To not
flood the device with map requests, use a simple throttling mechanism that
limits the number of in-flight map requests.

Link: https://lore.kernel.org/r/20210712095039.8093-10-avri.altman@wdc.com
Reviewed-by: Daejun Park <daejun7.park@samsung.com>
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshpb.c
drivers/scsi/ufs/ufshpb.h