Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Wentao Liang" <vulab@iscas.ac.cn>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH v2 2/3] scsi: lpfc: Report bsg mailbox failures as an errno
Date: Sat, 07 Nov 2026 16:25:46 +0000	[thread overview]
Message-ID: <sashiko-outbox-203055@kernel.org> (raw)
In-Reply-To: <20261107161655.2628796-2-vulab@iscas.ac.cn>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] scsi: lpfc: missing Fixes trailer for commit 7a4702774381
--

commit 7d6fb8accad0321798579f3066c01e672f56703a
Author: Wentao Liang <vulab@iscas.ac.cn>

> scsi: lpfc: Report bsg mailbox failures as an errno
>
> lpfc_bsg_issue_mbox() hands a command to the port with MBX_NOWAIT and, if
> that does not start the command, returns the raw result to
> lpfc_bsg_mbox_cmd(), which stores it in the bsg reply.  bsg-lib only
> reports a negative result as an error to the ioctl caller, so a positive
> MBX status such as MBX_NOT_FINISHED is passed off as success, with
> device_status holding the low byte of the status and no reply data.
>
> Report -EIO instead, as the polled path in the same function already maps
> its failures to -ETIME and -ENODEV.
>
> Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>

[Severity: Low]
7a4702774381 ("[SCSI] lpfc 8.3.11: Driver management improvements via BSG")
dropped the -EIO assignment when refactoring lpfc_bsg_issue_mbox() to use
the job_done label.  Should this include:

  Fixes: 7a4702774381 ("[SCSI] lpfc 8.3.11: Driver management improvements via BSG")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261107161655.2628796-1-vulab@iscas.ac.cn?part=2

  reply	other threads:[~2026-11-07 16:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-17 14:47 [PATCH] scsi: lpfc: Fix ndlp reference leak in lpfc_release_rpi() Wentao Liang
2026-09-17 19:35 ` Paul Ely
2026-10-06 21:21   ` Paul Ely
2026-11-07 15:17     ` Wentao Liang
2026-11-07 16:16     ` [PATCH v2 1/3] " Wentao Liang
2026-11-07 16:16       ` [PATCH v2 2/3] scsi: lpfc: Report bsg mailbox failures as an errno Wentao Liang
2026-11-07 16:25         ` sashiko-bot [this message]
2026-11-07 16:16       ` [PATCH v2 3/3] scsi: lpfc: Return MBX status when a non-polled mbox cannot be issued Wentao Liang
2026-11-07 16:33         ` sashiko-bot

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-203055@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vulab@iscas.ac.cn \
    /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