summaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorDamien Le Moal <dlemoal@kernel.org>2025-04-11 10:42:11 +0900
committerChristoph Hellwig <hch@lst.de>2025-04-16 07:37:37 +0200
commitad91308d3bdeb9d90ef4a400f379ce461f0fb6a7 (patch)
treeb1b463c990e8f7e80fae53c15b7bdf19b5935c62 /rust/helpers/helpers.c
parentf8e01fa93f3e4fc255d240cfa0c045ce0b5c97ea (diff)
downloadlinux-ad91308d3bdeb9d90ef4a400f379ce461f0fb6a7.tar.gz
linux-ad91308d3bdeb9d90ef4a400f379ce461f0fb6a7.tar.bz2
linux-ad91308d3bdeb9d90ef4a400f379ce461f0fb6a7.zip
nvmet: pci-epf: cleanup link state management
Since the link_up boolean field of struct nvmet_pci_epf_ctrl is always set to true when nvmet_pci_epf_start_ctrl() is called, assign true to this field in nvmet_pci_epf_start_ctrl(). Conversely, since this field is set to false when nvmet_pci_epf_stop_ctrl() is called, set this field to false directly inside that function. While at it, also add information messages to notify the user of the PCI link state changes to help troubleshoot any link stability issues without needing to enable debug messages. Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Niklas Cassel <cassel@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions