Commit 80769c7
Lspci: only refresh the pciids database once per node
get_devices ran update-pciids on every forced refresh, which adds a
network download and a noticeable delay to hot plug tests that rescan
the pci bus repeatedly. Track whether the database was already updated
for this tool instance and skip the refresh afterwards.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5d5f58ad-b9df-4420-ad37-22caee78e9251 parent a32969a commit 80769c7
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
296 | 301 | | |
297 | 302 | | |
298 | | - | |
299 | | - | |
300 | 303 | | |
301 | 304 | | |
302 | 305 | | |
| |||
0 commit comments