From: "Christoph Böhmwalder" <christoph.boehmwalder@linbit.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: drbd-dev@lists.linux.dev, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Philipp Reisner" <philipp.reisner@linbit.com>,
"Lars Ellenberg" <lars.ellenberg@linbit.com>,
"Christoph Böhmwalder" <christoph.boehmwalder@linbit.com>,
"Chuck Lever" <cel@kernel.org>,
kernel-tls-handshake@lists.linux.dev,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@kernel.org>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Simon Horman" <horms@kernel.org>,
netdev@vger.kernel.org, "Dan Williams" <djbw@kernel.org>,
"Vishal Verma" <vishal.l.verma@intel.com>,
"Dave Jiang" <dave.jiang@intel.com>,
"Alison Schofield" <alison.schofield@intel.com>,
nvdimm@lists.linux.dev, "Jonathan Corbet" <corbet@lwn.net>,
linux-doc@vger.kernel.org,
"Donald Hunter" <donald.hunter@gmail.com>
Subject: [PATCH v4 00/21] drbd: DRBD 9 rework
Date: Wed, 25 Nov 2026 16:34:50 +0100 [thread overview]
Message-ID: <20261125153511.3060599-1-christoph.boehmwalder@linbit.com> (raw)
As discussed (context: [0]), here is our DRBD 9 rework series, intended
for linux-next via for-7.x/drbd.
This replays about 10-15 years of active out-of-tree development work
[1], depending on your way of counting. The out-of-tree module has
severely diverged from the in-tree version over the years, which is
what we are aiming to fix now.
Hopefully that somewhat excuses (or at least explains) the massive
diffs -- we've tried to come up with a way to group the changes by
topic, but I realize it's still not exactly trivial to review.
We've been polishing this series for a while now, and we have taken
great care to make it as "upstream-presentable" as possible. That said,
there are still probably imperfections. It's a start -- feedback
welcome!
The netlink interface has been reworked so that userspace is not
broken: the existing "drbd" generic netlink family keeps being served
at version 1, and this series does not touch its generated
serialization or its UAPI header.
Every shipped drbd-utils release therefore keeps working against this
driver. DRBD 9's own utilities speak a new family, "drbd2", written as
a YNL specification under Documentation/netlink/specs/ and following
current genetlink conventions; its generated code is checked in as
usual. The driver registers both families and translates each onto the
same wire-neutral core, so the multi-peer administration model is only
reachable through drbd2, while version-1 clients see the single-peer
semantics they expect.
The RDMA and load-balancing TCP (lb-tcp) transports are not part of
this series; they will be submitted separately once they have had the
same treatment. The rdma_ctrl_rcvbuf_size
and rdma_ctrl_sndbuf_size net options do remain in the UAPI: they are
generic transport options that are interpreted by whichever transport is
in use, so there is no reason to remove and later re-add them.
The base for these patches is for-7.5/block, which has the preparation
patches [2] this series builds on.
As discussed, the goal is to get this applied to a for-7.x/drbd branch
so it can land in linux-next via block-next. After letting it mature
in linux-next for a while, it should go in via the block tree.
Thanks,
Christoph
[0] https://lore.kernel.org/linux-next/899e0337-9642-4ca6-9050-aeab14fa22ef@kernel.dk/
[1] https://github.com/LINBIT/drbd
[2] https://lore.kernel.org/linux-block/20260923140608.1116713-1-christoph.boehmwalder@linbit.com/
[3] https://lore.kernel.org/linux-block/20261111083505.3998706-1-christoph.boehmwalder@linbit.com/
v3: https://lore.kernel.org/linux-block/20261110162646.3028472-1-christoph.boehmwalder@linbit.com/
v2: https://lore.kernel.org/linux-block/20261006154607.3936501-1-christoph.boehmwalder@linbit.com/
Changes since v3:
- Fixed the problems that the kernel test robot and the sashiko review
found in v3 in code that is new with this series, mostly in the
version-1 netlink compatibility layer and the drbd2 family: among
others, string attributes longer than their buffer, the 8.4 peer slot
and history UUIDs in 8.4 meta-data, the peer commands before the
first connect, the resource-name filter of the drbd2 resource dump,
and the notification error paths
- Fixed the link failures with NET_HANDSHAKE=n and with BLK_DEV_DRBD=y
and DEV_DAX_PMEM=m: TLS for the TCP transport is now its own option,
BLK_DEV_DRBD_TCP_TLS, which a new patch allows to enable
NET_HANDSHAKE; the DAX meta-data code now depends on FS_DAX instead
of the device-dax driver
- The link failure with CRYPTO=n is in the current in-tree DRBD as
well; it is fixed by a separate patch [3]. This series applies with
and without it
- Dropped drbd_transport_template.c, which did not compile and was not
built
- Removed the userspace branches of the #ifdef __KERNEL__ blocks in
the protocol and meta-data headers
- Fixed kernel-doc warnings
- Synced with the current out-of-tree state
Changes since v2:
- Rebased onto for-7.5/block, now that the preparation patches are
applied there; v2 no longer applied
- Kept the in-tree DRBD changes that went into v7.4: the explicit
linux/umh.h include and the conversion to sk_set_nospace()
- Synced with the current out-of-tree state
Christoph Böhmwalder (21):
drbd: mark as BROKEN during DRBD 9 rework
drbd: extend wire protocol definitions for DRBD 9
drbd: introduce DRBD 9 on-disk metadata format
drbd: add transport layer abstraction
drbd: add TCP transport implementation
net/handshake: allow the DRBD TCP transport to enable NET_HANDSHAKE
drbd: add DAX/PMEM support for metadata access
drbd: add optional compatibility layer for DRBD 8.4
drbd: add application/resync IO synchronization documentation
drbd: rework sender for DRBD 9 multi-peer
drbd: replace per-device state model with multi-peer data structures
drbd: rewrite state machine for DRBD 9 multi-peer clusters
drbd: rework activity log and bitmap for multi-peer replication
drbd: rework request processing for DRBD 9 multi-peer IO
drbd: rework module core for DRBD 9 transport and multi-peer
drbd: rework receiver for DRBD 9 transport and multi-peer protocol
drbd: rework the netlink core for DRBD 9
drbd: serve the "drbd" genl family at version 1 for existing userspace
drbd: add the "drbd2" genl family
drbd: update monitoring interfaces for multi-peer topology
drbd: remove BROKEN for DRBD
.../application-resync-synchronization.rst | 208 +
.../admin-guide/blockdev/drbd/index.rst | 1 +
Documentation/netlink/specs/drbd2.yaml | 2615 +++
drivers/block/drbd/Kconfig | 63 +
drivers/block/drbd/Makefile | 9 +-
drivers/block/drbd/drbd2_nl_gen.c | 815 +
drivers/block/drbd/drbd2_nl_gen.h | 114 +
drivers/block/drbd/drbd_actlog.c | 1419 +-
drivers/block/drbd/drbd_bitmap.c | 2075 +-
drivers/block/drbd/drbd_config.h | 46 +-
drivers/block/drbd/drbd_dax_pmem.c | 175 +
drivers/block/drbd/drbd_dax_pmem.h | 43 +
drivers/block/drbd/drbd_debugfs.c | 1760 +-
drivers/block/drbd/drbd_debugfs.h | 2 +
drivers/block/drbd/drbd_int.h | 4041 ++--
drivers/block/drbd/drbd_interval.c | 39 +-
drivers/block/drbd/drbd_interval.h | 130 +-
drivers/block/drbd/drbd_legacy_84.c | 651 +
drivers/block/drbd/drbd_legacy_84.h | 129 +
drivers/block/drbd/drbd_main.c | 7032 +++++--
drivers/block/drbd/drbd_meta_data.h | 163 +
drivers/block/drbd/drbd_nl.c | 10355 ++++++---
drivers/block/drbd/drbd_nl.h | 416 +
drivers/block/drbd/drbd_nl_84.c | 4048 ++++
drivers/block/drbd/drbd_nl_defaults.c | 168 +
drivers/block/drbd/drbd_nl_drbd2.c | 2669 +++
drivers/block/drbd/drbd_nl_types.h | 406 +
drivers/block/drbd/drbd_polymorph_printk.h | 42 +-
drivers/block/drbd/drbd_proc.c | 327 +-
drivers/block/drbd/drbd_protocol.h | 620 +-
drivers/block/drbd/drbd_receiver.c | 17563 ++++++++++++----
drivers/block/drbd/drbd_req.c | 3208 ++-
drivers/block/drbd/drbd_req.h | 332 +-
drivers/block/drbd/drbd_sender.c | 4565 ++--
drivers/block/drbd/drbd_state.c | 9242 ++++++--
drivers/block/drbd/drbd_state.h | 334 +-
drivers/block/drbd/drbd_state_change.h | 80 +-
drivers/block/drbd/drbd_strings.c | 103 +-
drivers/block/drbd/drbd_strings.h | 4 +-
drivers/block/drbd/drbd_transport.c | 550 +
drivers/block/drbd/drbd_transport.h | 516 +
drivers/block/drbd/drbd_transport_tcp.c | 1828 ++
include/uapi/linux/drbd.h | 305 +-
include/uapi/linux/drbd2.h | 1046 +
include/uapi/linux/drbd_limits.h | 138 +-
net/Kconfig | 2 +-
46 files changed, 63195 insertions(+), 17202 deletions(-)
create mode 100644 Documentation/admin-guide/blockdev/drbd/application-resync-synchronization.rst
create mode 100644 Documentation/netlink/specs/drbd2.yaml
create mode 100644 drivers/block/drbd/drbd2_nl_gen.c
create mode 100644 drivers/block/drbd/drbd2_nl_gen.h
create mode 100644 drivers/block/drbd/drbd_dax_pmem.c
create mode 100644 drivers/block/drbd/drbd_dax_pmem.h
create mode 100644 drivers/block/drbd/drbd_legacy_84.c
create mode 100644 drivers/block/drbd/drbd_legacy_84.h
create mode 100644 drivers/block/drbd/drbd_meta_data.h
create mode 100644 drivers/block/drbd/drbd_nl.h
create mode 100644 drivers/block/drbd/drbd_nl_84.c
create mode 100644 drivers/block/drbd/drbd_nl_defaults.c
create mode 100644 drivers/block/drbd/drbd_nl_drbd2.c
create mode 100644 drivers/block/drbd/drbd_nl_types.h
create mode 100644 drivers/block/drbd/drbd_transport.c
create mode 100644 drivers/block/drbd/drbd_transport.h
create mode 100644 drivers/block/drbd/drbd_transport_tcp.c
create mode 100644 include/uapi/linux/drbd2.h
base-commit: aa7014f8d7565cfea117eac36a5de0a05eba65a4
--
2.56.0
next reply other threads:[~2026-11-25 15:35 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 15:34 Christoph Böhmwalder [this message]
2026-11-25 15:34 ` [PATCH v4 01/21] drbd: mark as BROKEN during " Christoph Böhmwalder
2026-11-25 15:34 ` [PATCH v4 02/21] drbd: extend wire protocol definitions for DRBD 9 Christoph Böhmwalder
2026-11-25 15:34 ` [PATCH v4 03/21] drbd: introduce DRBD 9 on-disk metadata format Christoph Böhmwalder
2026-11-25 15:34 ` [PATCH v4 04/21] drbd: add transport layer abstraction Christoph Böhmwalder
2026-11-25 15:34 ` [PATCH v4 05/21] drbd: add TCP transport implementation Christoph Böhmwalder
2026-11-25 15:34 ` [PATCH v4 06/21] net/handshake: allow the DRBD TCP transport to enable NET_HANDSHAKE Christoph Böhmwalder
2026-11-25 15:34 ` [PATCH v4 07/21] drbd: add DAX/PMEM support for metadata access Christoph Böhmwalder
2026-11-25 15:34 ` [PATCH v4 08/21] drbd: add optional compatibility layer for DRBD 8.4 Christoph Böhmwalder
2026-11-25 15:34 ` [PATCH v4 09/21] drbd: add application/resync IO synchronization documentation Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 10/21] drbd: rework sender for DRBD 9 multi-peer Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 11/21] drbd: replace per-device state model with multi-peer data structures Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 12/21] drbd: rewrite state machine for DRBD 9 multi-peer clusters Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 13/21] drbd: rework activity log and bitmap for multi-peer replication Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 14/21] drbd: rework request processing for DRBD 9 multi-peer IO Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 15/21] drbd: rework module core for DRBD 9 transport and multi-peer Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 16/21] drbd: rework receiver for DRBD 9 transport and multi-peer protocol Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 17/21] drbd: rework the netlink core for DRBD 9 Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 18/21] drbd: serve the "drbd" genl family at version 1 for existing userspace Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 19/21] drbd: add the "drbd2" genl family Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 20/21] drbd: update monitoring interfaces for multi-peer topology Christoph Böhmwalder
2026-11-25 15:35 ` [PATCH v4 21/21] drbd: remove BROKEN for DRBD Christoph Böhmwalder
2026-11-25 20:23 ` kernel test robot
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=20261125153511.3060599-1-christoph.boehmwalder@linbit.com \
--to=christoph.boehmwalder@linbit.com \
--cc=alison.schofield@intel.com \
--cc=axboe@kernel.dk \
--cc=cel@kernel.org \
--cc=corbet@lwn.net \
--cc=dave.jiang@intel.com \
--cc=davem@davemloft.net \
--cc=djbw@kernel.org \
--cc=donald.hunter@gmail.com \
--cc=drbd-dev@lists.linux.dev \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kernel-tls-handshake@lists.linux.dev \
--cc=kuba@kernel.org \
--cc=lars.ellenberg@linbit.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nvdimm@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=philipp.reisner@linbit.com \
--cc=vishal.l.verma@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®