On Wed, 7 Jul 2021 11:59:45 -0700, Igor Pylypiv wrote: > The tmf timeout timer may trigger at the same time when the response > from a controller is being handled. When this happens the sas task may > get freed before the response processing is finished. > > Fix this by calling complete() only when SAS_TASK_STATE_DONE is not set. > > Similar race condition was fixed in commit b90cd6f2b905 > ("scsi: libsas: fix a race condition when smp task timeout") Applied to 5.14/scsi-fixes, thanks! [1/1] scsi: pm80xx: Fix tmf task completion race condition https://git.kernel.org/mkp/scsi/c/d712d3fb484b -- Martin K. Petersen Oracle Linux Engineering