From: "Kiwoong Kim" <kwmad.kim@samsung.com>
To: <linux-scsi@vger.kernel.org>, <alim.akhtar@samsung.com>,
<avri.altman@wdc.com>, <jejb@linux.ibm.com>,
<martin.petersen@oracle.com>, <beanhuo@micron.com>,
<cang@codeaurora.org>, <adrian.hunter@intel.com>,
<sc.suh@samsung.com>, <hy50.seo@samsung.com>,
<sh425.lee@samsung.com>, <bhoon95.kim@samsung.com>
Subject: About ufshcd_err_handling_unprepare
Date: Mon, 27 Sep 2021 16:39:52 +0900 [thread overview]
Message-ID: <005701d7b372$dc01ad20$94050760$@samsung.com> (raw)
In-Reply-To: CGME20210927073953epcas2p26eeb9e4fbb86bb54d7dd73acc5beb28a@epcas2p2.samsung.com
Dear all
I have one question about ufshcd_clear_ua_wluns in ufshcd_err_handling_unprepare.
You probably know a scsi command (request sense) is issued in there to clear UAC for W-LUs.
Let's think about a situation that a read command is timed-out.
And then scmd_eh_abort_handler is called, shost's state is transitioned to SHOST_RECOVERY and scsi_sh is waken up.
If this is the case that the scsi_eh goes up to eh_host_reset_handler,
ufshcd_eh_host_reset_handler queues ufshcd_err_handler and waits for its completion.
And this function can call ufshcd_err_handling_unprepare at the end.
But I think, at this time, the scsi command, i.e. request sense, could not be dispatched because of the shost's state.
Is it needed to be fixed or did I miss something?
Thanks.
Kiwoong Kim
next parent reply other threads:[~2021-09-27 7:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20210927073953epcas2p26eeb9e4fbb86bb54d7dd73acc5beb28a@epcas2p2.samsung.com>
2021-09-27 7:39 ` Kiwoong Kim [this message]
2021-09-27 16:34 ` About ufshcd_err_handling_unprepare Bart Van Assche
2021-09-28 5:32 ` Kiwoong Kim
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='005701d7b372$dc01ad20$94050760$@samsung.com' \
--to=kwmad.kim@samsung.com \
--cc=adrian.hunter@intel.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=bhoon95.kim@samsung.com \
--cc=cang@codeaurora.org \
--cc=hy50.seo@samsung.com \
--cc=jejb@linux.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=sc.suh@samsung.com \
--cc=sh425.lee@samsung.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.