[PATCH 4/7] drbd: raise the maximum resync rate to 8 GiB/s

From: Christoph Böhmwalder

Date: Wed Sep 23 2026 - 10:17:30 EST


The resync-rate limit tops out at 4 GiB/s, which was chosen for bonded
10 GbE. Current hardware exceeds that with a single link. Double the
limit to 8 GiB/s, matching DRBD 9, and make the constant unsigned like
its neighbours.

Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@xxxxxxxxxx>
---
include/uapi/linux/drbd_limits.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/drbd_limits.h b/include/uapi/linux/drbd_limits.h
index 4132b619376c..bba0a0aa8792 100644
--- a/include/uapi/linux/drbd_limits.h
+++ b/include/uapi/linux/drbd_limits.h
@@ -121,7 +121,7 @@
/* FIXME allow rate to be zero? */
#define DRBD_RESYNC_RATE_MIN 1U
/* channel bonding 10 GbE, or other hardware */
-#define DRBD_RESYNC_RATE_MAX (4 << 20)
+#define DRBD_RESYNC_RATE_MAX (8U << 20)
#define DRBD_RESYNC_RATE_DEF 250U
#define DRBD_RESYNC_RATE_SCALE 'k' /* kilobytes */

--
2.55.0