ceph: set osdmap epoch for setxattr
authorXiubo Li <xiubli@redhat.com>
Wed, 9 Dec 2020 02:52:20 +0000 (10:52 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 14 Dec 2020 22:21:48 +0000 (23:21 +0100)
commit968cd14edc3acff251f98bdc1eb15f13f05dd5fb
tree20e1f57e72db93c6f4876e898cdd3da20902dcf3
parent4a756db2a149f25483a7c63f013ff96372a0b2cb
ceph: set osdmap epoch for setxattr

When setting the file/dir layout, it may need data pool info. So
in mds server, it needs to check the osdmap. At present, if mds
doesn't find the data pool specified, it will try to get the latest
osdmap. Now if pass the osd epoch for setxattr, the mds server can
only check this epoch of osdmap.

URL: https://tracker.ceph.com/issues/48504
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/xattr.c
include/linux/ceph/ceph_fs.h