From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Can Guo <can.guo@oss.qualcomm.com>
Cc: bvanassche@acm.org, beanhuo@micron.com, peter.wang@mediatek.com,
martin.petersen@oracle.com, mani@kernel.org,
linux-scsi@vger.kernel.org, Alim Akhtar <alim.akhtar@samsung.com>,
Avri Altman <avri.altman@wdc.com>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
linux-kernel@vger.kernel.org (open list)
Subject: Re: [PATCH v2] scsi: ufs: core: Avoid possible memory reclaim deadlock in TX EQTR context
Date: Sun, 12 Jul 2026 14:02:49 -0400 [thread overview]
Message-ID: <yq1h5m4f5mq.fsf@ca-mkp.ca.oracle.com> (raw)
In-Reply-To: <20260618140941.902000-1-can.guo@oss.qualcomm.com> (Can Guo's message of "Thu, 18 Jun 2026 07:09:29 -0700")
Can,
> TX EQTR may run while devfreq gear scaling has quiesced the UFS
> tagset. In that context, functions ufshcd_tx_eqtr(),
> __ufshcd_tx_eqtr() and ufs_qcom_get_rx_fom() allocate memory with
> GFP_KERNEL. If direct reclaim is triggered, reclaim/writeback can
> depend on I/O to UFS device. Because the queue is quiesced, this can
> cause deadlock.
Applied to 7.3/scsi-staging, thanks!
--
Martin K. Petersen
prev parent reply other threads:[~2026-07-12 18:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-18 14:09 Can Guo
2026-07-02 7:27 ` Ziqi Chen
2026-07-06 14:09 ` Bart Van Assche
2026-07-06 15:44 ` Manivannan Sadhasivam
2026-07-12 18:02 ` Martin K. Petersen [this message]
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=yq1h5m4f5mq.fsf@ca-mkp.ca.oracle.com \
--to=martin.petersen@oracle.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=can.guo@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mani@kernel.org \
--cc=peter.wang@mediatek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox