mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-11-04 04:13:26 +00:00
both style and readability are naturally subjective to a certain degree... Also, this patch mixes a bit much into one thing, but splitting that up would mean lots of work I just wanted to avoid, sorry about that. Among other things: - avoid a level of indentation in the reserve loop - rename pciids to reservation_list where it was a better fit - make reserve set either pid or time to avoid suggesting that we save both - rename parameters to requested/dropped IDs for easier understanding what's going on in the code - avoid old_pid/pid, use running_pid and reserver_pid instead to clarify what they actually mean - drop useless returns to avoid suggesting the return value has any use and save some lnes - use a hash slice to delete all dropped IDs at once, shorter and faster - use 5 second timeout for reservation, this does nothing intensive nor does it wait for anything, so the critical section should be really short, 5s is really long enough for a wait.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
||
|---|---|---|
| debian | ||
| PVE | ||
| qemu-configs | ||
| qmeventd | ||
| test | ||
| vm-network-scripts | ||
| .gitignore | ||
| bootsplash.jpg | ||
| bootsplash.xcf | ||
| Makefile | ||
| modules-load.conf | ||
| qm | ||
| qmextract | ||
| qmrestore | ||