From: Ren Wei <n05ec@lzu.edu.cn>
To: Viacheslav Dubeyko <vdubeyko@redhat.com>, ceph-devel@vger.kernel.org
Cc: idryomov@gmail.com, amarkuze@redhat.com, slava@dubeyko.com,
sage@newdream.net, Slava.Dubeyko@ibm.com, yuantan098@gmail.com,
zcliangcn@gmail.com, bird@lzu.edu.cn, ldy3087146292@gmail.com,
n05ec@lzu.edu.cn
Subject: [PATCH v5 0/2] libceph: reject zero bucket types and clean up type 0 uses
Date: Fri, 5 Jun 2026 16:43:03 +0800 [thread overview]
Message-ID: <cover.1780640154.git.ldy3087146292@gmail.com> (raw)
From: Douya Le <ldy3087146292@gmail.com>
This series fixes a CRUSH map decode issue in libceph and keeps the
follow-up type-0-to-constant cleanup in a separate patch.
Patch 1/2 rejects bucket type 0 during CRUSH map decode and defines the
reserved device type in a separate enum.
Patch 2/2 uses that type constant consistently in the CRUSH mapper
paths that identify leaf devices.
Douya Le (2):
libceph: reject zero bucket types in crush_decode
libceph: crush: use CRUSH_ITEM_TYPE_DEVICE for leaf device checks
include/linux/crush/crush.h | 6 +++++-
net/ceph/crush/mapper.c | 8 ++++----
net/ceph/osdmap.c | 2 ++
3 files changed, 11 insertions(+), 5 deletions(-)
--
2.47.3
next reply other threads:[~2026-06-05 8:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 8:43 Ren Wei [this message]
2026-06-05 8:43 ` [PATCH v5 1/2] libceph: reject zero bucket types in crush_decode Ren Wei
2026-06-05 19:03 ` Viacheslav Dubeyko
2026-06-05 8:43 ` [PATCH v5 2/2] libceph: crush: use CRUSH_ITEM_TYPE_DEVICE for leaf device checks Ren Wei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1780640154.git.ldy3087146292@gmail.com \
--to=n05ec@lzu.edu.cn \
--cc=Slava.Dubeyko@ibm.com \
--cc=amarkuze@redhat.com \
--cc=bird@lzu.edu.cn \
--cc=ceph-devel@vger.kernel.org \
--cc=idryomov@gmail.com \
--cc=ldy3087146292@gmail.com \
--cc=sage@newdream.net \
--cc=slava@dubeyko.com \
--cc=vdubeyko@redhat.com \
--cc=yuantan098@gmail.com \
--cc=zcliangcn@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.