Browse Source

prevent deadlocks by setting the cache pointer to the source address in case of errors

master
Constantin Fürst 11 months ago
parent
commit
e9785f3f9e
  1. 2
      offloading-cacher/cache.hpp

2
offloading-cacher/cache.hpp

@ -692,7 +692,7 @@ inline void dsacache::CacheData::WaitOnCompletion() {
// handle errors now by aborting the cache // handle errors now by aborting the cache
if (error) { if (error) {
cache_->store(nullptr);
cache_->store(src_);
numa_free(incomplete_cache_, size_); numa_free(incomplete_cache_, size_);
} }
else { else {

Loading…
Cancel
Save