Skip to content

Improve host registry locking

Christopher Schinnerl requested to merge chris/registry-improved-locking into master

MERGE REQUEST

MR Guidelines

Overview

This MR adds per-entry locking to the registry. To further improve performance, it guarantees that the global registry lock is never held during disk I/O and that it is never held at the same time as an entry lock. We only need it to flip bits in the bitfield and to add to, retrieve from or delete from the internal map.

Checklist

Review and complete the checklist to ensure that the MR is complete before assigned to an approver.

  • All new methods or updated methods have clear docstrings
  • Testing added or updated for new methods
  • Any new packages are added to Makefile and .gitlab-ci.yml
  • API documentation updated for API updates
  • Module README.md updated for changes to workflow
  • Issue added to Sia-UI repo for new supporting features
  • Changelog File Created

Issues Closed

Merge request reports