Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3831014pxk; Tue, 22 Sep 2020 03:54:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBQwvjw6B2Zn2cv5ZmD8exdcoHLFPoh6G7AY7nHXRgdXloh1ELB0vyBRaZCSFn/+7uCNxK X-Received: by 2002:a05:6402:70f:: with SMTP id w15mr3334027edx.202.1600772044189; Tue, 22 Sep 2020 03:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600772044; cv=none; d=google.com; s=arc-20160816; b=qduJOfdli2AXiB36lRU1mXxCqL6z+ssBYFC0rNSUAyJbeW+Kr0KuHpTuIkNJXMicsF kGXp9TIt/Gq7S/HUAYiAJ+4kSfXPz68088uhU5VlotnKxKTYM2WmzhUQVY6G2SLWySSw FHrLwlzTUR3ucFyYfXqtBFN68lU5355XYcf6MkCSaP+VYUnLTiTeAtHm0zD8CXA8JKDW jb5lsxZfTcITDv9eFvUNHv3DaUXmvbHILWeBxwJpDRkdmhMCAgK7nZWXHJLDKkg3gsF2 CwEKERHslxZEOxrSFiwIZpq/BVsXyNjDviSv+WUnsaqYHzp2sOU1XccCA5nHsM7QciZ0 CwSg== 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=aiJBVDikZ4ujUlt8UYpyM0mSMq9hUSVyyV0F7i7fx80=; b=0pR+fqLow+2YIptrWHBol6cXM85xJeiEy0Lf34tCmGdShssmjss5CbTueoIFw3lSEH ai61b7YZLrH8di2md3E7hii33s5fCMPtcyWCV2DrEdclCu6t+al0SRcVHuS4J4rQVEpB WxNCdwF7MKT+qjjXcSpkVJw6vhBLCir75INspOEbvTOOSQ3gbg4Txm3GXyvX4XhoDmLm 8gPaD7lKOR+IDQnwYipYN4JmyjU6Jd/Ai7Jse6f72guk0afXh5Yuf7U/GAP13R5veNHJ pjCH0jhBn0wCvE1aHVsve8XZne7OoiQTG1iwP9AqB3a6cnuF5nAxGYz0dfmHCqY5yYZM HVxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="gPa/2lH6"; 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 b1si10478716ejg.435.2020.09.22.03.53.40; Tue, 22 Sep 2020 03:54:04 -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="gPa/2lH6"; 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 S1726522AbgIVKwf (ORCPT + 99 others); Tue, 22 Sep 2020 06:52:35 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:5742 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbgIVKwf (ORCPT ); Tue, 22 Sep 2020 06:52:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1600771955; x=1632307955; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=aiJBVDikZ4ujUlt8UYpyM0mSMq9hUSVyyV0F7i7fx80=; b=gPa/2lH6P8YCaDBoOSzIK31GA0bISa1x0KpUxN/ixMiY2L/YN4BCIYrc 3RvIHbiNZVapKfU/4qFv3+jbZOzdLad9Cxaiwg1HScOlk6zBzBg78vNSl 7D433NeK/6hysew3aUOcnfOAwd10oGQQQGfk65RmEaZcDNa4GjUWrBqgv k=; X-IronPort-AV: E=Sophos;i="5.77,290,1596499200"; d="scan'208";a="55547558" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 22 Sep 2020 10:52:34 +0000 Received: from EX13D31EUA004.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com (Postfix) with ESMTPS id CB54FA05DE; Tue, 22 Sep 2020 10:52:31 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.162.35) by EX13D31EUA004.ant.amazon.com (10.43.165.161) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Sep 2020 10:52:26 +0000 From: SeongJae Park To: , , CC: SeongJae Park , , , , , , , , Subject: [PATCH v2 0/3] xen-blk(back|front): Let users disable persistent grants Date: Tue, 22 Sep 2020 12:52:06 +0200 Message-ID: <20200922105209.5284-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.162.35] X-ClientProxiedBy: EX13D14UWB003.ant.amazon.com (10.43.161.162) 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_v2 The web is also available: https://github.com/sjp38/linux/tree/pgrants_disable_v2 Patch History ============= 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 | 28 ++++++++++++++----- drivers/block/xen-blkfront.c | 28 +++++++++++++------ 4 files changed, 60 insertions(+), 16 deletions(-) -- 2.17.1