Re: [PATCH] ceph: use frag's MDS in either mode

2020-07-30 Thread Yanhu Cao
On Fri, Jul 31, 2020 at 12:46 AM Jeff Layton wrote: > > On Thu, 2020-07-30 at 19:22 +0800, Yanhu Cao wrote: > > if frag.mds != cap->session->s_mds, the client's req will be resent. > > > > e.g. > > > > file: mnt/cephfs/dir03/dir003 (0x103) > > ceph.dir.pin="1" > > > > echo 'aaa' > /mnt/cep

Re: [PATCH] ceph: use frag's MDS in either mode

2020-07-30 Thread Jeff Layton
On Thu, 2020-07-30 at 19:22 +0800, Yanhu Cao wrote: > if frag.mds != cap->session->s_mds, the client's req will be resent. > > e.g. > > file: mnt/cephfs/dir03/dir003 (0x103) > ceph.dir.pin="1" > > echo 'aaa' > /mnt/cephfs/dir03/dir003/file29 > > kernel: ceph: __choose_mds ca362

[PATCH] ceph: use frag's MDS in either mode

2020-07-30 Thread Yanhu Cao
if frag.mds != cap->session->s_mds, the client's req will be resent. e.g. file: mnt/cephfs/dir03/dir003 (0x103) ceph.dir.pin="1" echo 'aaa' > /mnt/cephfs/dir03/dir003/file29 kernel: ceph: __choose_mds ca362c7a is_hash=1 (0x7c768b89) mode 2 kernel: ceph: __choose_mds ca