On Wed, 27 Apr 2022 14:32:50 -0400, David Jeffery wrote: > With tape devices, the SCF_TREAT_READ_AS_NORMAL flag is used by the target > subsystem to mark commands which have both data to return as well as > sense data. But with pscsi, SCF_TREAT_READ_AS_NORMAL can be set even if > there is no data to return. The SCF_TREAT_READ_AS_NORMAL flag causes the > target core to call iscsit datain callbacks even if there is no data, which > iscsit does not support. This results in iscsit going into an error state > requiring recovery and being unable to complete the command to the > initiator. > > [...] Applied to 5.18/scsi-fixes, thanks! [1/1] target: pscsi: set SCF_TREAT_READ_AS_NORMAL flag only if there is valid data https://git.kernel.org/mkp/scsi/c/8be70a842f70 -- Martin K. Petersen Oracle Linux Engineering