Re: [PATCH] scsi: target: tcm_loop: drain commands in target_reset handler
"Martin K. Petersen" <[email protected]>
| Newsgroups | org.kernel.vger.target-devel,org.kernel.vger.linux-scsi,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 16 Mar 2026 20:23:29 -0400, Josef Bacik wrote:
> tcm_loop_target_reset() violates the SCSI EH contract: it returns
> SUCCESS without draining any in-flight commands. The SCSI EH
> documentation (scsi_eh.rst) requires that when a reset handler returns
> SUCCESS the driver has made lower layers "forget about timed out scmds"
> and is ready for new commands. Every other SCSI LLD (virtio_scsi,
> mpt3sas, ipr, scsi_debug, mpi3mr) enforces this by draining or
> completing outstanding commands before returning SUCCESS.
>
> [...]
Applied to 7.0/scsi-fixes, thanks!
[1/1] scsi: target: tcm_loop: drain commands in target_reset handler
https://git.kernel.org/mkp/scsi/c/1333eee56cdf
--
Martin K. Petersen