]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: iscsi: Fix redundant response for ISCSI_UEVENT_GET_HOST_STATS request
authorXiang Zhang <hawkxiang.cpp@gmail.com>
Tue, 7 Jan 2025 02:24:31 +0000 (10:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Feb 2025 17:24:00 +0000 (18:24 +0100)
commit46bdd737a16b579640c1a2f2cf6c9442f5ffa241
tree11c4799a6222927e26d0ecd4db01ceac627e6dd0
parent318ebf85114383add0f83d2a48e3976ce7b0a937
scsi: iscsi: Fix redundant response for ISCSI_UEVENT_GET_HOST_STATS request

[ Upstream commit 63ca02221cc5aa0731fe2b0cc28158aaa4b84982 ]

The ISCSI_UEVENT_GET_HOST_STATS request is already handled 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 <hawkxiang.cpp@gmail.com>
Link: https://lore.kernel.org/r/20250107022432.65390-1-hawkxiang.cpp@gmail.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/scsi_transport_iscsi.c