Hi Bart, I am not sure if this series could solve the racing you met. However this series looks good to me. Reviewed-by: Stanley Chu <stanley.chu@xxxxxxxxxxxx> On Mon, 2022-06-13 at 14:44 -0700, Bart Van Assche wrote: > Hi Martin, > > This patch series is version two of a fix between the UFS interrupt > handler and > reset handlers. Please consider this patch series for kernel v5.20. > > Changes compared to v1: > - Converted a single patch into three patches. > - Modified patch 3/3 such that only cleared requests are completed. > > Bart Van Assche (3): > scsi: ufs: Simplify ufshcd_clear_cmd() > scsi: ufs: Support clearing multiple commands at once > scsi: ufs: Fix a race between the interrupt handler and the reset > handler > > drivers/ufs/core/ufshcd.c | 76 ++++++++++++++++++++++++------------- > -- > 1 file changed, 48 insertions(+), 28 deletions(-) >