Re: [PATCH v5 0/6] scsi: ufs: core: Factor hba->outstanding_reqs helper and fix double completions

From: Martin K. Petersen

Date: Fri Oct 23 2026 - 23:18:57 EST



Stanley,

> In Single Doorbell (SDB) mode, multiple completion and error handling
> paths can race on the same transfer request when bits in
> hba->outstanding_reqs are not claimed atomically with completing the
> request. A stale bit in hba->outstanding_reqs lets a later poll or
> reset complete the request again and unmap its DMA buffers twice.

Applied to 7.4/scsi-staging, thanks!

--
Martin K. Petersen