]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: scsi_transport_fc: Allow setting rport state to current state
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 17 Sep 2024 23:06:43 +0000 (19:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Nov 2024 15:25:53 +0000 (16:25 +0100)
commite1d57c29e4733dcc7d16284ac1b50a5a80aa7e4e
treea084532882b940ab469cbd1a988f2ad117dd291d
parent60fb94ef46c2359dd06cbe30bfc2499f639433df
scsi: scsi_transport_fc: Allow setting rport state to current state

[ Upstream commit d539a871ae47a1f27a609a62e06093fa69d7ce99 ]

The only input fc_rport_set_marginal_state() currently accepts is
"Marginal" when port_state is "Online", and "Online" when the port_state
is "Marginal". It should also allow setting port_state to its current
state, either "Marginal or "Online".

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Link: https://lore.kernel.org/r/20240917230643.966768-1-bmarzins@redhat.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/scsi_transport_fc.c