]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix and skip submitting invalid osd request 49939/head
authorXiubo Li <xiubli@redhat.com>
Thu, 12 Jan 2023 01:11:02 +0000 (09:11 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 31 Jan 2023 05:42:12 +0000 (13:42 +0800)
commit6cd1ab05c8d80fcd0117641113caf5dddb9194ca
tree1eb08832f4a8ba7fc1667aec29da8b8c004ecc3e
parent9b7646fa5a9c0ac65e9430f24b8b8518a9ceb6d8
mds: fix and skip submitting invalid osd request

When the first dentry have enough metadata and the size is larger
than max_write_size, it may submitting one invalid osd request to
Rados, which will cause the cephfs to be readonly.

Fixes: https://tracker.ceph.com/issues/58082
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit e268728014700fde6dec1bdf8df3fb0ce226ede4)
src/mds/CDir.cc