From: levin li <xingke.lwp at taobao.com> v1 --- > v2: 1. rename 'reclaim' to 'deletion' 2. add some comments 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 | 66 ++++++++++++++++++++++++++++++++++++++++++-- sheep/ops.c | 14 +++++++++ sheep/sheep_priv.h | 2 + sheep/vdi.c | 52 +++++++++++++++++++++++++++++++++-- 5 files changed, 129 insertions(+), 6 deletions(-) |