• Y
    ceph: don't pre-allocate space for cap release messages · 745a8e3b
    Yan, Zheng 提交于
    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: NYan, Zheng <zyan@redhat.com>
    745a8e3b
caps.c 95.1 KB