Commit ad91308
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 <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>1 parent f8e01fa commit ad91308
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2095 | 2095 | | |
2096 | 2096 | | |
2097 | 2097 | | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
2098 | 2102 | | |
2099 | 2103 | | |
2100 | 2104 | | |
2101 | 2105 | | |
2102 | 2106 | | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
2103 | 2110 | | |
2104 | 2111 | | |
2105 | 2112 | | |
| |||
2326 | 2333 | | |
2327 | 2334 | | |
2328 | 2335 | | |
2329 | | - | |
2330 | | - | |
| 2336 | + | |
2331 | 2337 | | |
2332 | | - | |
2333 | 2338 | | |
2334 | 2339 | | |
2335 | 2340 | | |
| |||
2345 | 2350 | | |
2346 | 2351 | | |
2347 | 2352 | | |
2348 | | - | |
2349 | 2353 | | |
2350 | 2354 | | |
2351 | 2355 | | |
| |||
2357 | 2361 | | |
2358 | 2362 | | |
2359 | 2363 | | |
2360 | | - | |
2361 | 2364 | | |
2362 | 2365 | | |
2363 | 2366 | | |
| |||
2368 | 2371 | | |
2369 | 2372 | | |
2370 | 2373 | | |
2371 | | - | |
2372 | 2374 | | |
2373 | 2375 | | |
2374 | 2376 | | |
| |||
0 commit comments