From patchwork Thu Mar 2 12:54:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christoph_B=C3=B6hmwalder?= X-Patchwork-Id: 13157276 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 692FDC678D4 for ; Thu, 2 Mar 2023 12:55:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbjCBMz1 (ORCPT ); Thu, 2 Mar 2023 07:55:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjCBMz1 (ORCPT ); Thu, 2 Mar 2023 07:55:27 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8352AAD34 for ; Thu, 2 Mar 2023 04:55:25 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id a25so4683752edb.0 for ; Thu, 02 Mar 2023 04:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linbit-com.20210112.gappssmtp.com; s=20210112; t=1677761724; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jZgw50LCuKrnZIMnz0+4XFexCiqGPxROK8CODTa/Oy4=; b=GzfOcygfycPPjUjyHE9sLQv2L8G0lcgA08J/nQN++LQMU+gVOjO1CFZLsDsq0NOULA 80rKUCwRNjD170l3SOsyh9HMJoWZCLEuSoku9ow5rayFbMrj8Cxz/xHEzJvZsnHixAWB dDiCdE83ON4HuC4tudrbuEoP4MS+Hl3st4a2xeaA+pugznYBYCLqgcmrHskhsxrRncS4 f4Sw6ge7pgF6r2+Hi2TDzQlyRyh3ChiAx+dm+SAwtw/H6W/rd3e4gigXKchsAkNtZKvr NcP5XJuoq9q7/TEh9RLepKsGQzSV3wVqyOQ1nBRVOR1+3Ih8HiF4VaziVpAMkTGxFecr q/Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677761724; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jZgw50LCuKrnZIMnz0+4XFexCiqGPxROK8CODTa/Oy4=; b=q5+x2on/pAHGJTpdYCOyB9WPP2YZSQSCs8/Z8tYfQm4x2w2DuhIkZ6+d+Ps4ay6n7a 3TPZY1Q1vJX2MvPz3AUeuhh3urJsL28TrvSSUG6kPgKXtsUQunSLalK+e5VzFg2+7rKT ZxAuvytQuwv7pkFkmtmbT9zNmHf+r/1VC/UqqtaJaXwY7Y2dmwLKhhYDAGylE7g6jJtT jXb3bxt+/5UgjLdh8wPM5Ob+lypbjYYaK8g6DN0EPnC6Qj6hJID1nt5Y1Ew301aUpECU fFslAe31CtJtf7Bvx9LYegeQ6tnrGXemu1s8BuN+CPUh9YgWGRdf5+pbrmW/i24vs+O7 er3Q== X-Gm-Message-State: AO0yUKVcHZKmXfgDcuUlO3PVylnOyF/JANBMEA7dQ/A0zRj/xa6Tmxil uVANt/h+8z+NxBcrc2DojvrG+dB7f/Q50i9fsPO+eA== X-Google-Smtp-Source: AK7set8rm/kGgFWfUtgEBHPO0TIzJXFir8UyXV2ZEqsMcKwhBuRbPe0/rYsenCDFz6rWlfFPa7Eyag== X-Received: by 2002:a05:6402:1016:b0:4ac:d973:bb2c with SMTP id c22-20020a056402101600b004acd973bb2cmr11266829edu.28.1677761723988; Thu, 02 Mar 2023 04:55:23 -0800 (PST) Received: from localhost.localdomain (h082218028181.host.wavenet.at. [82.218.28.181]) by smtp.gmail.com with ESMTPSA id a98-20020a509eeb000000b004ad601533a3sm6955034edf.55.2023.03.02.04.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 04:55:23 -0800 (PST) From: =?utf-8?q?Christoph_B=C3=B6hmwalder?= To: Jens Axboe Cc: drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org, Lars Ellenberg , Philipp Reisner , linux-block@vger.kernel.org, =?utf-8?q?Christoph_B=C3=B6hmwalder?= Subject: [PATCH v2 0/7] Assorted DRBD refactoring Date: Thu, 2 Mar 2023 13:54:38 +0100 Message-Id: <20230302125445.2653493-1-christoph.boehmwalder@linbit.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Another set of "backported" DRBD refactoring patches to bring the in-tree version closer to out-of-tree. These are (hopefully) no-ops, pretty much just preparation for future upstreaming work. Changes since v1: - Address some compiler warnings - Reorder/merge patches to avoid breaking compilation between commits Andreas Gruenbacher (3): drbd: Rip out the ERR_IF_CNT_IS_NEGATIVE macro drbd: Add peer device parameter to whole-bitmap I/O handlers drbd: INFO_bm_xfer_stats(): Pass a peer device argument Christoph Böhmwalder (4): genetlink: make _genl_cmd_to_str static drbd: drbd_uuid_compare: pass a peer_device drbd: pass drbd_peer_device to __req_mod drbd: Pass a peer device to the resync and online verify functions drivers/block/drbd/drbd_actlog.c | 13 ++-- drivers/block/drbd/drbd_bitmap.c | 13 +++- drivers/block/drbd/drbd_int.h | 120 +++++++++++++++-------------- drivers/block/drbd/drbd_main.c | 72 ++++++++++------- drivers/block/drbd/drbd_nl.c | 19 +++-- drivers/block/drbd/drbd_receiver.c | 102 ++++++++++++------------ drivers/block/drbd/drbd_req.c | 30 +++++--- drivers/block/drbd/drbd_req.h | 11 ++- drivers/block/drbd/drbd_state.c | 29 ++++--- drivers/block/drbd/drbd_worker.c | 114 ++++++++++++++------------- include/linux/genl_magic_func.h | 2 +- 11 files changed, 293 insertions(+), 232 deletions(-) base-commit: 326ac2c5133e5da7ccdd08d4f9c562f2323021aa