ceph: update the auth cap when the async create req is forwarded
authorXiubo Li <xiubli@redhat.com>
Fri, 10 Jun 2022 01:53:21 +0000 (09:53 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 2 Aug 2022 22:54:12 +0000 (00:54 +0200)
commit0006164589ecc755cd6bbc46e466e32be20fe285
tree020b356477c20cee8f484ea483dafbb166eddcf7
parente19feff96380e7a98ed55446ae08c3c52ce6a994
ceph: update the auth cap when the async create req is forwarded

For async create we will always try to choose the auth MDS of frag
the dentry belonged to of the parent directory to send the request
and ususally this works fine, but if the MDS migrated the directory
to another MDS before it could be handled the request will be
forwarded. And then the auth cap will be changed.

We need to update the auth cap in this case before the request is
forwarded.

Link: https://tracker.ceph.com/issues/55857
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c
fs/ceph/mds_client.c
fs/ceph/super.h