From patchwork Tue Sep 22 14:15:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 11792665 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 59F1E112E for ; Tue, 22 Sep 2020 14:20:55 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 24E1920757 for ; Tue, 22 Sep 2020 14:20:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="eSzwF5Y5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24E1920757 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kKj8g-0003U4-7h; Tue, 22 Sep 2020 14:19:26 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kKj8e-0003Ru-7k for xen-devel@lists.xenproject.org; Tue, 22 Sep 2020 14:19:24 +0000 X-Inumbo-ID: edb3353e-5ccd-4989-b7a4-9de620a21be2 Received: from smtp-fw-9101.amazon.com (unknown [207.171.184.25]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id edb3353e-5ccd-4989-b7a4-9de620a21be2; Tue, 22 Sep 2020 14:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1600784359; x=1632320359; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OBQsZyJBuiCetLUlZLSO8CKNXhhvxT++kw73YrVj7g0=; b=eSzwF5Y5Qd0gYCwQqJ1ErVWP1mgfIh7cmeXjITq46JveSJt9N4ko9ihe BBgT/Nq1B3E07GeEZq0JyBXjdlmB7yGjack/UnFdnhys1dX8Aj0iqbaUY 2vp7ZdlHQBJlr6GJsieYY2j6GD/eJk7iUmvOiW5YSGKKSThh1he4o4SOY Q=; 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 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 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" 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(-) Acked-by: Roger Pau Monné