fnic_clean_pending_aborts() was returning a non-zero value irrespective of
failure or success. This caused the caller of this function to assume that
the device reset had failed, even though it would succeed in most cases. As
a consequence, a successful device reset would escalate to host reset.
The first patch is already in Jammy
commit 06adda263bd3776 b019f282318efe1 8dd5bfa173
Author: Karan Tilak Kumar <email address hidden>
Date: Thu Jul 27 12:39:19 2023 -0700
scsi: fnic: Replace return codes in fnic_clean_ pending_ aborts( )
BugLink: https:/ /bugs.launchpad .net/bugs/ 2038382
commit 5a43b07a8783566 0f91d88a4db11ab fea8c523b7 upstream.
fnic_ clean_pending_ aborts( ) was returning a non-zero value irrespective of
failure or success. This caused the caller of this function to assume that
the device reset had failed, even though it would succeed in most cases. As
a consequence, a successful device reset would escalate to host reset.
Reviewed-by: Sesidhar Baddela <email address hidden>
Tested-by: Karan Tilak Kumar <email address hidden>
Signed-off-by: Karan Tilak Kumar <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Martin K. Petersen <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Stefan Bader <email address hidden>