From: Xiubo Li <xiubli@xxxxxxxxxx> V2: - ignore laggy for the auth mds case - for the random mds choosing, get one none laggy first and only when there has no we will fall back to choose a laggy one if there has. Xiubo Li (3): mdsmap: add more debug info when decoding mdsmap: fix mdsmap cluster available check based on laggy number mdsmap: only choose one MDS who is in up:active state without laggy fs/ceph/mds_client.c | 13 +++++-- fs/ceph/mdsmap.c | 74 ++++++++++++++++++++----------------- include/linux/ceph/mdsmap.h | 1 + 3 files changed, 51 insertions(+), 37 deletions(-) -- 2.21.0