Re: [PATCH v5 2/2] ufs: mcq: poll OCS after sq cleanup for device management commands

From: Bart Van Assche

Date: Wed Nov 04 2026 - 21:43:16 EST


On 11/4/26 12:17 PM, Bean Huo wrote:
READ_ONCE() is enough to read OCS, but the lock also is to make sure
ufshcd_compl_one_cqe() has finished? the window is very small, and the lock
only costs something on this error handling path.

I overlooked that lrbp->utr_descriptor_ptr->header.ocs is what is being
polled instead of the OCS field in the CQE. Kiwoong, can you please
restore the code that obtains hwq->cq_lock?

Thanks,

Bart.