From: Muneendra Kumar M <muneendra.kumar@broadcom.com>
To: Mike Christie <michael.christie@oracle.com>,
linux-scsi@vger.kernel.org, hare@suse.de
Cc: jsmart2021@gmail.com, emilne@redhat.com, mkumar@redhat.com
Subject: RE: [PATCH v6 3/4] scsi_transport_fc: Added a new rport state FC_PORTSTATE_MARGINAL
Date: Thu, 5 Nov 2020 22:57:11 +0530 [thread overview]
Message-ID: <08d150e63f2b79cd0199fb49355ce601@mail.gmail.com> (raw)
In-Reply-To: <e575da88-8b40-3062-9835-419456b46989@oracle.com>
[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]
Hi Mike,
Thanks for the input.
Below are my replies.
>Hey sorry for the late reply. I was trying to test some things out but am
>not sure if all drivers work the same.
>For the code above, what will happen if we have passed that check in the
>driver, then the driver does the report del and add sequence? Let's say
>it's initially calling the abort callout, and we passed that check, we then
>do the >del/add seqeuence, what will happen next? Do the fc drivers return
>success or failure for the abort call. What happens for the other callouts
>too?
>If failure, then the eh escalates and when we call the next callout, and we
>hit the check above and will clear it, so we are ok.
If success then we would not get a chance to clear it right?
[Muneendra]Agreed. So what about clearing the flags in fc_remote_port_del. I
think this should address all the concerns?
> If this is the case, then I think you need to instead go the route where
> you add the eh cmd completion/decide_disposition callout. You would call
> it in scmd_eh_abort_handler, scsi_eh_bus_device_reset, etc when we are
> deciding if we want to retry/fail the command.
[Muneendra]Sorry I didn't get what you are saying could you please elaborate
on the same.
In this approach you do not need the eh_timed_out changes, since we only
seem to care about the port state after the eh callout has completed.
[Muneendra]what about setting the SCMD_NORETRIES_ABORT bit?
Regards,
Muneendra.
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4177 bytes --]
next prev parent reply other threads:[~2020-11-05 17:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 6:09 [PATCH v6 0/4] scsi: Support to handle Intermittent errors Muneendra
2020-11-05 6:09 ` [PATCH v6 1/4] scsi: Added a new definition in scsi_cmnd.h Muneendra
2020-11-05 6:09 ` [PATCH v6 2/4] scsi: No retries on abort success Muneendra
2020-11-05 6:09 ` [PATCH v6 3/4] scsi_transport_fc: Added a new rport state FC_PORTSTATE_MARGINAL Muneendra
2020-11-05 15:59 ` Mike Christie
2020-11-05 17:27 ` Muneendra Kumar M [this message]
2020-11-05 19:15 ` Mike Christie
2020-11-05 20:02 ` Muneendra Kumar M
2020-11-06 7:23 ` Hannes Reinecke
2020-11-07 1:18 ` Mike Christie
2020-11-05 20:01 ` Muneendra Kumar M
2020-11-05 6:09 ` [PATCH v6 4/4] scsi_transport_fc: Added store fucntionality to set the rport port_state using sysfs Muneendra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08d150e63f2b79cd0199fb49355ce601@mail.gmail.com \
--to=muneendra.kumar@broadcom.com \
--cc=emilne@redhat.com \
--cc=hare@suse.de \
--cc=jsmart2021@gmail.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michael.christie@oracle.com \
--cc=mkumar@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.