[PATCH 1/1] [Eoan/Focal?] scsi: Revert "target/core: Inline transport_lun_remove_cmd()"

Stefan Bader stefan.bader at canonical.com
Thu Mar 12 08:08:18 UTC 2020


On 28.02.20 22:17, Pavel Zakharov wrote:
> BugLink: https://bugs.launchpad.net/ubuntu/+source/linux-hwe/+bug/1862682
> 
> scsi: Revert "target/core: Inline transport_lun_remove_cmd()"
> 
> Commit 83f85b8ec305 postponed the percpu_ref_put(&se_cmd->se_lun->lun_ref)
> call from command completion to the time when the final command reference
> is dropped. That approach is not compatible with the iSCSI target driver
> because the iSCSI target driver keeps the command with the highest stat_sn
> after it has completed until the next command is received (see also
> iscsit_ack_from_expstatsn()). Fix this regression by reverting commit
> 83f85b8ec305.
> 
> Fixes: 83f85b8ec305 ("scsi: target/core: Inline transport_lun_remove_cmd()")
> Cc: Pavel Zakharov <pavel.zakharov at delphix.com>
> Cc: Mike Christie <mchristi at redhat.com>
> Cc: <stable at vger.kernel.org>
> Link: https://lore.kernel.org/r/20200210051202.12934-1-bvanassche@acm.org
> Reported-by: Pavel Zakharov <pavel.zakharov at delphix.com>
> Signed-off-by: Bart Van Assche <bvanassche at acm.org>
> Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
> ---

Since the HWE kernel is a backport from the Eoan kernel, this would affect
anything v5.3 and later. I modified the bug report accordingly (when applying,
this should go into Eoan). Not sure about Focal, it could already have landed
while pulling in stable updates.

-Stefan

>  drivers/target/target_core_transport.c | 31 +++++++++++++++++++++++---
>  1 file changed, 28 insertions(+), 3 deletions(-)
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20200312/d7278278/attachment.sig>


More information about the kernel-team mailing list