Re: [PATCH v4 5/6] scsi: ufs: core: Fix double release in ufshcd_abort()

From: Peter Wang

Date: Thu Oct 22 2026 - 05:16:19 EST


On Wed, 2026-10-21 at 09:37 -0700, Bart Van Assche wrote:
> On 10/21/26 6:28 AM, Stanley Jhu wrote:
> > A return value of 0 here means the completion path, rather than
> > this abort path, has claimed the tag and may still be running
> > ufshcd_release_scsi_cmd() after it dropped outstanding_lock.
> Do we really need the code that checks that a command has completed
> without notification interrupt? I have never encountered any logs on
> any test setup that indicates that this happened.
>
> Thanks,
>
> Bart.

I remember that when the SSU timeout was only 1 sec, we'd pretty
easily hit the concurrent execution case between the timeout and
the complete path. But after change it to 10 sec along with patch
9a5f6c09d0fa (scsi: ufs: core: Simplify ufshcd_try_to_abort_task()),
it shouldn't happen anymore.

Thanks
Peter