mbox series

[v2,0/3] mdsmap: fix mds choosing

Message ID 20191125110827.12827-1-xiubli@redhat.com (mailing list archive)
Headers show
Series mdsmap: fix mds choosing | expand

Message

Xiubo Li Nov. 25, 2019, 11:08 a.m. UTC
From: Xiubo Li <xiubli@redhat.com>

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(-)