From: James Smart <jsmart2021@gmail.com>
To: Yang Yingliang <yangyingliang@huawei.com>,
linux-kernel@vger.kernel.org, target-devel@vger.kernel.org,
linux-scsi@vger.kernel.org
Cc: hch@lst.de, james.smart@broadcom.com, martin.petersen@oracle.com
Subject: Re: [PATCH -next v2] scsi: efct: don't use GFP_KERNEL under spin lock
Date: Wed, 12 Jan 2022 11:28:48 -0800 [thread overview]
Message-ID: <881ba4aa-2dc6-b116-869f-0fa2ecfe326b@gmail.com> (raw)
In-Reply-To: <20220111012441.3232527-1-yangyingliang@huawei.com>
On 1/10/2022 5:24 PM, Yang Yingliang wrote:
> GFP_KERNEL/GFP_DMA can't be used under a spin lock, according the
> comment of els_ios_lock, it's used to protect els ios list, so we
> can move down the spin lock to avoid using this flag under the lock.
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Fixes: 8f406ef72859 ("scsi: elx: libefc: Extended link Service I/O handling")
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
> v2:
> move up unlock to just protect list_add_tail()
> ---
> drivers/scsi/elx/libefc/efc_els.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
Looks fine.
Reviewed-by: James Smart <jsmart2021@gmail.com>
-- james
next prev parent reply other threads:[~2022-01-12 19:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-11 1:24 Yang Yingliang
2022-01-12 19:28 ` James Smart [this message]
2022-01-19 3:26 ` Martin K. Petersen
2022-01-25 5:40 ` Martin K. Petersen
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=881ba4aa-2dc6-b116-869f-0fa2ecfe326b@gmail.com \
--to=jsmart2021@gmail.com \
--cc=hch@lst.de \
--cc=james.smart@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=target-devel@vger.kernel.org \
--cc=yangyingliang@huawei.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
Powered by JetHome