]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3650d5d353465ad10a6e0c98eeacf27c1158af66
tree020b356477c20cee8f484ea483dafbb166eddcf7
parent826a6ca7d00262ab668fc3cd2d8805a28db06be8
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