]> git.proxmox.com Git - proxmox-backup-qemu.git/commit
access: use CachedChunkReader
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 7 Jun 2021 15:35:32 +0000 (17:35 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 8 Jun 2021 07:46:01 +0000 (09:46 +0200)
commit6eade0ebb76acfa262069575d7d1eb122f8fc2e2
treeb6939b45767f9f65b7b4de6fc1834a7de3943eaf
parentab3577e9d84bfb309b84aece1cb867276c6972b5
access: use CachedChunkReader

Use the new CachedChunkReader with the shared_cache implementation to
provide a concurrency-safe async way of accessing data. This provides
two benefits:

* uses a shared LRU cache, which is very helpful for random-access like
  during a live-restore
* does away with the global Mutex in read_image_at, providing real
  concurrency without lock contention

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/restore.rs