From: levin li <[email protected]>

Object list cache does not take too much memory, so reclaiming seems
unnecessary, but there's a problem:

Objects belonging to a deleted VDI does not exist any more, but the
associated entries still stay in the cache list, so if a recovery
happens, sheep would try to recovery these objects and of cause this
would cause many object recovery failure, and waste resource.

levin li (3):
  sheep: notify VDI deletion to all nodes when deleting a VDI
  object list cache: put all the cache entry into a list
  object list cache: reclaim object list cache when receiving a
    deletion event.

 include/internal_proto.h  |    1 +
 sheep/object_list_cache.c |   60 ++++++++++++++++++++++++++++++++++++++++++--
 sheep/ops.c               |   14 ++++++++++
 sheep/sheep_priv.h        |    2 +
 sheep/vdi.c               |   52 ++++++++++++++++++++++++++++++++++++--
 5 files changed, 123 insertions(+), 6 deletions(-)

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to