Re: [PATCH v2] scsi: iscsi: Fix redundant response for ISCSI_UEVENT_GET_HOST_STATS request

12 views
Skip to first unread message

Mike Christie

unread,
Jan 6, 2025, 4:03:37 PMJan 6
to Xiang Zhang, linux...@vger.kernel.org, linux-...@vger.kernel.org, Lee Duncan, Chris Leech, James E.J. Bottomley, Martin K. Petersen, open-...@googlegroups.com
On 1/5/25 10:16 PM, Xiang Zhang wrote:
> The ISCSI_UEVENT_GET_HOST_STATS request is already replied to iscsid in iscsi_get_host_stats,

The lines are too long. You need to keep them shorter than 75 columns
in the commit message.

You can quickly check your patch by running:

src/linux$ scripts/checkpatch.pl your-patch.patch

Also don't forget the code comment below.

> @@ -4113,6 +4113,8 @@ iscsi_if_rx(struct sk_buff *skb)
> break;

Thanks for the update, but I think you missed the previous email:


Patch looks correct, but could you update the code comment right above
this line so it mentions ISCSI_UEVENT_GET_STATS and
ISCSI_UEVENT_GET_HOST_STATS.


> if (ev->type == ISCSI_UEVENT_GET_CHAP && !err)
> break;
> + if (ev->type == ISCSI_UEVENT_GET_HOST_STATS && !err)
> + break;
> err = iscsi_if_send_reply(portid, nlh->nlmsg_type,
> ev, sizeof(*ev));
> if (err == -EAGAIN && --retries < 0) {

michael....@oracle.com

unread,
Jan 7, 2025, 8:49:04 PMJan 7
to Xiang Zhang, linux...@vger.kernel.org, linux-...@vger.kernel.org, Lee Duncan, Chris Leech, James E.J. Bottomley, Martin K. Petersen, open-...@googlegroups.com
On 1/6/25 8:24 PM, Xiang Zhang wrote:
> The ISCSI_UEVENT_GET_HOST_STATS request is already replied to
> iscsid in iscsi_get_host_stats. This fix ensures
> that redundant responses are skipped in iscsi_if_rx.
> - On success: send reply and stats from iscsi_get_host_stats()
> within if_recv_msg().
> - On error: fall through.
>
> Signed-off-by: Xiang Zhang <hawkxi...@gmail.com>

Thanks for fixing this.

Reviewed-by: Mike Christie <michael....@oracle.com>

Martin K. Petersen

unread,
Jan 10, 2025, 4:16:36 PMJan 10
to michael....@oracle.com, Xiang Zhang, Martin K . Petersen, linux...@vger.kernel.org, linux-...@vger.kernel.org, Lee Duncan, Chris Leech, James E.J. Bottomley, open-...@googlegroups.com
On Tue, 07 Jan 2025 10:24:31 +0800, Xiang Zhang wrote:

> The ISCSI_UEVENT_GET_HOST_STATS request is already replied to
> iscsid in iscsi_get_host_stats. This fix ensures
> that redundant responses are skipped in iscsi_if_rx.
> - On success: send reply and stats from iscsi_get_host_stats()
> within if_recv_msg().
> - On error: fall through.
>
> [...]

Applied to 6.13/scsi-fixes, thanks!

[1/1] scsi: iscsi: Fix redundant response for ISCSI_UEVENT_GET_HOST_STATS request
https://git.kernel.org/mkp/scsi/c/63ca02221cc5

--
Martin K. Petersen Oracle Linux Engineering
Reply all
Reply to author
Forward
0 new messages