Re: [PATCH v3 3/7] scsi: ufs: core: Fix double completion in ufshcd_clear_lu_cmds()

From: Bart Van Assche

Date: Tue Oct 20 2026 - 15:58:03 EST


On 10/20/26 1:21 AM, Stanley Jhu wrote:
In SDB mode, ufshcd_clear_lu_cmds() clears the request slot in the
controller and completes the request, but leaves its bit set in
hba->outstanding_reqs. ufshcd_poll() treats a request whose bit is set
in hba->outstanding_reqs and clear in the doorbell register as finished,
so the next ufshcd_poll() completes the same request again and unmaps
its DMA buffers twice.

Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>