All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Shuo Qin" <23159100078@stu.xidian.edu.cn>
Cc: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org
Subject: Re: [PATCH] scsi: elx: libefc: Initialize the virtual port list lock
Date: Sat, 05 Dec 2026 10:05:53 +0000	[thread overview]
Message-ID: <sashiko-outbox-251363@kernel.org> (raw)
In-Reply-To: <20261205095431.114279-1-23159100078@stu.xidian.edu.cn>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] scsi: elx: libefc: Fixes trailer cites wrong introducing commit
--

commit 680563d03aff45c04adf842e09bbb86f2fac08e5
Author: Shuo Qin <23159100078@stu.xidian.edu.cn>

> scsi: elx: libefc: Initialize the virtual port list lock
>
> The virtual port helpers protect efc->vport_list with vport_lock, but
> efcport_init() initializes only the list head. The dynamically allocated
> efc object therefore contains an uninitialized spinlock. Taking it during
> virtual port teardown can trigger a spinlock debugging failure.
>
> Initialize vport_lock alongside the list before any virtual port helper
> can use it.
>
> Fixes: fcd427303eb9 ("scsi: elx: libefc: SLI and FC PORT state machine interfaces")
> Cc: stable@vger.kernel.org
> Co-developed-by: Bin Yu <byu@xidian.edu.cn>
> Signed-off-by: Bin Yu <byu@xidian.edu.cn>
> Co-developed-by: Cheng Wen <wencheng@xidian.edu.cn>
> Signed-off-by: Cheng Wen <wencheng@xidian.edu.cn>
> Signed-off-by: Shuo Qin <23159100078@stu.xidian.edu.cn>

[Severity: Low]
Should the Fixes tag point to d7b71fd2195e ("scsi: elx: libefc: Emulex FC
discovery library APIs and definitions") instead?

Commit fcd427303eb9 ("scsi: elx: libefc: SLI and FC PORT state machine
interfaces") only added efc_nport.c and efc_nport.h, whereas the earlier
commit introduced vport_lock in struct efc and efcport_init() without
calling spin_lock_init(&efc->vport_lock).

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261205095431.114279-1-23159100078@stu.xidian.edu.cn?part=1

      reply	other threads:[~2026-12-05 10:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  9:54 [PATCH] scsi: elx: libefc: Initialize the virtual port list lock Shuo Qin
2026-12-05 10:05 ` sashiko-bot [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=sashiko-outbox-251363@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=23159100078@stu.xidian.edu.cn \
    --cc=linux-scsi@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=target-devel@vger.kernel.org \
    /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.