Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3970902pxk; Tue, 22 Sep 2020 07:20:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0uCNNFFthLM0l1aCnCfiuknsmPeiSFmbbMwxK6FkcpRUgxyNfG7swT69d7qojLIhj6bCS X-Received: by 2002:a05:6402:3c8:: with SMTP id t8mr4054370edw.266.1600784443925; Tue, 22 Sep 2020 07:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600784443; cv=none; d=google.com; s=arc-20160816; b=hso3QJK2zK7V0oPpvKod+gqon89gWrcAfP+ptyI+FYYXGXcy5auLQKH3LuMMMAnZ85 Nzaku9MSg9TCcpgbGbEDj3Gf6+3qreWAuZogjdCpW0Nw/mSAOUbG7Afn5xk4b8Zjz0uz H0tL/wD4fkyn1UdNZgYK967P4Z73XpRsFUwtEHL2rH5OeMo9N8VLdaEiDX7BBc5BVkRU RRScVUzRp54SLEDyhx2Kf4oxb9DEMFYRa7E5abxNTJPyygnPF0a+yoxy8U5XOYnNE1bu bjpNkeP+sVnIE3CZGqHvicsOgMULKxurLWrnHCh5eVRhwZ2YPwaR/WJeFSA1C0/lyYQ9 rXew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OBQsZyJBuiCetLUlZLSO8CKNXhhvxT++kw73YrVj7g0=; b=U5T8FWJvbABx1Pz3WKwuK1wsQQDL6USzKahyRW8MxvprgJ780Rit/8siVkrVAs1tgs HEzU5tBtPZfy1rOs9PYYtmiL6yv7K9eR0JfgKTd362oUBAAFTdW9KviWmv0F6gTsPWrQ i2iD1jsUw65ZMSOGENrAhwJlNjjDPCe2hPp8g9ndrCCatmyQxHOlwdCwuuNn1dw/a48h F3SpeQThkphKhcvv9QijqOG1fjKKciGtyU/FKaL5gqexyBR7Vao6IpHCpU531pcfmMkc +OAKpO8WiS83blMypEilhqEpQVfn3B4xknvP4ZpNW7Zg1fgM5NQ4m/NkyFtuF1z8yNKY Czjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ZMLFvINU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si12059311eje.58.2020.09.22.07.20.18; Tue, 22 Sep 2020 07:20:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ZMLFvINU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbgIVOTU (ORCPT + 99 others); Tue, 22 Sep 2020 10:19:20 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:29546 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726631AbgIVOTT (ORCPT ); Tue, 22 Sep 2020 10:19:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1600784358; x=1632320358; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OBQsZyJBuiCetLUlZLSO8CKNXhhvxT++kw73YrVj7g0=; b=ZMLFvINUchbBnXVz1uNieZXbyHKlYC4jFKfaLbBq8yRvlC0vBvgGgSR/ ZKwHvblAfKCDb89UvIq4ViU4iFL9SEF1S6BMQiMqs3yW90rnZMXNWFR5H Xhp/jL6IPUHYM7OUSLnn8Ft3+Ex/ieN+v7AjD7F00qPbvTmpLwL0nQ7pQ k=; X-IronPort-AV: E=Sophos;i="5.77,291,1596499200"; d="scan'208";a="70117511" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-c300ac87.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 22 Sep 2020 14:16:13 +0000 Received: from EX13D31EUA004.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-c300ac87.us-west-2.amazon.com (Postfix) with ESMTPS id DB8BCA215B; Tue, 22 Sep 2020 14:16:12 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.160.137) by EX13D31EUA004.ant.amazon.com (10.43.165.161) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Sep 2020 14:16:06 +0000 From: SeongJae Park To: , , CC: SeongJae Park , , , , , , , , Subject: [PATCH v3 0/3] xen-blk(back|front): Let users disable persistent grants Date: Tue, 22 Sep 2020 16:15:46 +0200 Message-ID: <20200922141549.26154-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.43.160.137] X-ClientProxiedBy: EX13D12UWC001.ant.amazon.com (10.43.162.78) To EX13D31EUA004.ant.amazon.com (10.43.165.161) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SeongJae Park Persistent grants feature provides high scalability. On some small systems, however, it could incur data copy overheads[1] and thus it is required to be disabled. But, there is no option to disable it. For the reason, this commit adds module parameters for disabling of the feature. [1] https://wiki.xen.org/wiki/Xen_4.3_Block_Protocol_Scalability Baseline and Complete Git Trees =============================== The patches are based on the v5.9-rc6. You can also clone the complete git tree: $ git clone git://github.com/sjp38/linux -b pgrants_disable_v3 The web is also available: https://github.com/sjp38/linux/tree/pgrants_disable_v3 Patch History ============= Changes from v2 (https://lore.kernel.org/linux-block/20200922105209.5284-1-sjpark@amazon.com/) - Avoid race conditions (Roger Pau Monné) Changes from v1 (https://lore.kernel.org/linux-block/20200922070125.27251-1-sjpark@amazon.com/) - use 'bool' parameter type (Jürgen Groß) - Let blkfront can also disable the feature from its side (Roger Pau Monné) - Avoid unnecessary xenbus_printf (Roger Pau Monné) - Update frontend parameter doc SeongJae Park (3): xen-blkback: add a parameter for disabling of persistent grants xen-blkfront: add a parameter for disabling of persistent grants xen-blkfront: Apply changed parameter name to the document .../ABI/testing/sysfs-driver-xen-blkback | 9 ++++++++ .../ABI/testing/sysfs-driver-xen-blkfront | 11 +++++++++- drivers/block/xen-blkback/xenbus.c | 22 ++++++++++++++----- drivers/block/xen-blkfront.c | 20 ++++++++++++----- 4 files changed, 50 insertions(+), 12 deletions(-) -- 2.17.1