Centos-kernel-stream-9/include/linux/ceph
Patrick Talbert 4b78264ab3 Merge: ceph: switch to corrected encoding of max_xattr_size in mdsmap
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/3796

JIRA: https://issues.redhat.com/browse/RHEL-26722
Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Conflicts:
- minor mismatches due to missing commit 522dc5108f07 ("libceph,
  ceph: move mdsmap.h to fs/ceph")

commit 51d31149a88b5c5a8d2d33f06df93f6187a25b4c
Author: Xiubo Li <xiubli@redhat.com>
Date:   Mon Feb 19 13:14:32 2024 +0800

    ceph: switch to corrected encoding of max_xattr_size in mdsmap

    The addition of bal_rank_mask with encoding version 17 was merged
    into ceph.git in Oct 2022 and made it into v18.2.0 release normally.
    A few months later, the much delayed addition of max_xattr_size got
    merged, also with encoding version 17, placed before bal_rank_mask
    in the encoding -- but it didn't make v18.2.0 release.

    The way this ended up being resolved on the MDS side is that
    bal_rank_mask will continue to be encoded in version 17 while
    max_xattr_size is now encoded in version 18.  This does mean that
    older kernels will misdecode version 17, but this is also true for
    v18.2.0 and v18.2.1 clients in userspace.

    The best we can do is backport this adjustment -- see ceph.git
    commit 78abfeaff27fee343fb664db633de5b221699a73 for details.

    [ idryomov: changelog ]

    Cc: stable@vger.kernel.org
    Link: https://tracker.ceph.com/issues/64440
    Fixes: d93231a6bc8a ("ceph: prevent a client from exceeding the MDS maximum xattr size")
    Signed-off-by: Xiubo Li <xiubli@redhat.com>
    Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
    Reviewed-by: Venky Shankar <vshankar@redhat.com>
    Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

Signed-off-by: Xiubo Li <xiubli@redhat.com>

Closes RHEL-26722

Approved-by: Ilya Dryomov <idryomov@redhat.com>
Approved-by: John B. Wyatt IV <jwyatt@redhat.com>

Merged-by: Patrick Talbert <ptalbert@redhat.com>
2024-05-03 12:43:29 +02:00
..
auth.h
buffer.h
ceph_debug.h
ceph_features.h
ceph_frag.h
ceph_fs.h ceph: fscrypt_auth handling for ceph 2024-03-26 10:24:12 +08:00
ceph_hash.h
cls_lock_client.h
debugfs.h
decode.h
libceph.h ceph: move mount state enum to super.h 2023-03-02 14:23:23 +08:00
mdsmap.h ceph: switch to corrected encoding of max_xattr_size in mdsmap 2024-02-28 13:54:30 +08:00
messenger.h libceph: just wait for more data to be available on the socket 2024-03-26 10:24:16 +08:00
mon_client.h
msgpool.h
msgr.h
osd_client.h libceph: fail sparse-read if the data length doesn't match 2024-03-26 10:24:16 +08:00
osdmap.h
pagelist.h
rados.h libceph: add CEPH_OSD_OP_ASSERT_VER support 2024-03-26 10:24:14 +08:00
string_table.h
striper.h
types.h