Re: [PATCH v2] scsi: ufs: core: fix racing issue during ufshcd_mcq_abort

From: Bart Van Assche
Date: Wed Nov 15 2023 - 13:22:19 EST


On 11/14/23 21:27, hoyoung seo wrote:
The test_bit() function just check SCMD_STATE_COMPLETE bit state.
Do not set SCMD_STATE_COMPLETE field.
This function is also used in ufshcd_mcq_compl_pending_transfer()
to check the status of cmd.

Right, I misread your patch. Can you please take a look at the following
patch and verify whether it perhaps addresses the same issue that you want
to address: https://lore.kernel.org/linux-scsi/20231115131024.15829-1-peter.wang@xxxxxxxxxxxx/

Thanks,

Bart.