scsi: ufs: core: Set the Command Priority (CP) flag for RT requests
authorBart Van Assche <bvanassche@acm.org>
Thu, 21 Sep 2023 19:22:49 +0000 (12:22 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Sep 2023 15:12:50 +0000 (11:12 -0400)
commit00d2fa28da0aa371ad215e92ebf5297c0e7d4861
tree3f7d0783ec639557dd462518b2b9c709c506fc3f
parentc788cf8a21cd3b12a1823869878e3fd93132859f
scsi: ufs: core: Set the Command Priority (CP) flag for RT requests

Make the UFS device execute realtime (RT) requests before other requests.
This will be used in Android to reduce the I/O latency of the foreground
app.

Note: UFS devices do not support CDL so using CDL is not a viable
alternative.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230921192335.676924-5-bvanassche@acm.org
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c
include/ufs/ufs.h