• Y
    ceph: encode inodes' parent/d_name in cap reconnect message · a33f6432
    Yan, Zheng 提交于
    Since nautilus, MDS tracks dirfrags whose child inodes have caps in open
    file table. When MDS recovers, it prefetches all of these dirfrags. This
    avoids using backtrace to load inodes. But dirfrags prefetch may load
    lots of useless inodes into cache, and make MDS run out of memory.
    
    Recent MDS adds an option that disables dirfrags prefetch. When dirfrags
    prefetch is disabled. Recovering MDS only prefetches corresponding dir
    inodes. Including inodes' parent/d_name in cap reconnect message can
    help MDS to load inodes into its cache.
    Signed-off-by: N"Yan, Zheng" <zyan@redhat.com>
    Reviewed-by: NJeff Layton <jlayton@kernel.org>
    Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
    a33f6432
mds_client.c 131.6 KB