Skip to content
  • Yan, Zheng's avatar
    ceph: don't pre-allocate space for cap release messages · 745a8e3b
    Yan, Zheng authored
    
    
    Previously we pre-allocate cap release messages for each caps. This
    wastes lots of memory when there are large amount of caps. This patch
    make the code not pre-allocate the cap release messages. Instead,
    we add the corresponding ceph_cap struct to a list when releasing a
    cap. Later when flush cap releases is needed, we allocate the cap
    release messages dynamically.
    
    Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
    745a8e3b