Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2866222rdb; Tue, 12 Sep 2023 14:56:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuaqr0DH17Hjy4VHQk9nniqh2H/n/tWrJyu58zSIA21txroA9PCXlwLr9yCw+DGztFvWRi X-Received: by 2002:a17:902:c94c:b0:1bd:e85f:700e with SMTP id i12-20020a170902c94c00b001bde85f700emr1096630pla.69.1694555768482; Tue, 12 Sep 2023 14:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694555768; cv=none; d=google.com; s=arc-20160816; b=S6ROaoms8EIUpDR4yAxxRxdN1qy/1ws79HcRP2eLNpK05CiT7Vb3bDY+dhSa5V9v6G 8CPucdIK+I3dpfBOgEx7+qdKkWyNct26cLkjiOEzkAkh94gZUDaqEK08dy79cQ4RIoD0 82I4JM8lSnvD3QCmwL+prwm4Gw/0SJ+XfpgVgEhJmhFMCXarTK6USBUgqodSll4phNtb IFVQMB3cpNqbsVWkgq0N/ZgNts3WbZ5Fr+ioF1mStGppugFlVUianzP7039EBL5yI6Sx pJL4FnXKcXvMTNVRncj5l9EmiNzN3r+Pp3ugqhmV6xBxT2mhyXMTSkGbAv5rVNHG/xJC Od6g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qoUjRDOou+oTZqqwqurF1Ivsy3RlyYHW0xfYpau32qA=; fh=83jIsur+KW5rtnKSRzNFQGWV3pmTDwvrqHBfcbjqsL4=; b=AHtxvo6SuG1CTog2EWQZRiwgDC7uQSLt6bKsWt9w32ENQJ5HrUB7lWw5zmnk7yRoEk fwuQNgs6gt1ShAjc6ko2IDoifwyi+vfKRd7YZQDzLISp84PbkXYI+R0n2YRV1ap6Fpns ehGAOLZWYuRIiYAOYYmZ9Q6M23mww1yuxeBXpoJlCsnUKQ5yG3CA1Li3U7rEATVVJS6D DQ8Cy1ln5Exh74fs7sj57NMxY9teedG3lr4cVs9DWLj1d3ZfNhfAyEAs04ZmpCLD9IHg WsUISeJ1iwf+cmO5f+JmQPCRmDPdW5r2toZElxL6vh9KBjD1d0Br9g6pmIPt71xedTtd zVsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=duAJQyzV; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id d12-20020a170902728c00b001bbc138af0dsi8581040pll.163.2023.09.12.14.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=duAJQyzV; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C398C81DE69B; Tue, 12 Sep 2023 14:55:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237695AbjILVz3 (ORCPT + 99 others); Tue, 12 Sep 2023 17:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235507AbjILVz0 (ORCPT ); Tue, 12 Sep 2023 17:55:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E668710F2 for ; Tue, 12 Sep 2023 14:53:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694555633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qoUjRDOou+oTZqqwqurF1Ivsy3RlyYHW0xfYpau32qA=; b=duAJQyzVccGicHSiIdL2BXSYS15C2g+inRRO03CSZYAsgefU4Adcin+QJGMIeS1v3WaaXM gO/xhzzyxV6U+DY/ok0c/brVijDuXXNpN8ST5wPq2rgchQyrdshAUOjVBF58kVdcODkhnK L4sBbiwKP8TvYQgm4i1LF73/b/Zbbzw= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-85-dxXtEViPN5CgeWoEZd50fg-1; Tue, 12 Sep 2023 17:53:50 -0400 X-MC-Unique: dxXtEViPN5CgeWoEZd50fg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 72F2C2999B29; Tue, 12 Sep 2023 21:53:49 +0000 (UTC) Received: from fs-i40c-03.fs.lab.eng.bos.redhat.com (fs-i40c-03.fs.lab.eng.bos.redhat.com [10.16.224.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2643C40C2009; Tue, 12 Sep 2023 21:53:49 +0000 (UTC) From: Alexander Aring To: linux-nfs@vger.kernel.org Cc: gfs2@lists.linux.dev, ocfs2-devel@lists.linux.dev, linux-fsdevel@vger.kernel.org, teigland@redhat.com, rpeterso@redhat.com, agruenba@redhat.com, trond.myklebust@hammerspace.com, anna@kernel.org, chuck.lever@oracle.com, jlayton@kernel.org, aahringo@redhat.com Subject: [PATCHv2 nfsd/master 7/7] dlm: implement EXPORT_OP_ASYNC_LOCK Date: Tue, 12 Sep 2023 17:53:24 -0400 Message-Id: <20230912215324.3310111-8-aahringo@redhat.com> In-Reply-To: <20230912215324.3310111-1-aahringo@redhat.com> References: <20230912215324.3310111-1-aahringo@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Sep 2023 14:55:31 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email This patch is activating the EXPORT_OP_ASYNC_LOCK export flag to signal lockd that both filesystems are able to handle async lock requests. The cluster filesystems gfs2 and ocfs2 will redirect their lock requests to DLMs plock implementation that can handle async lock requests. Signed-off-by: Alexander Aring --- fs/gfs2/export.c | 1 + fs/ocfs2/export.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/gfs2/export.c b/fs/gfs2/export.c index cf40895233f5..ef1013eff936 100644 --- a/fs/gfs2/export.c +++ b/fs/gfs2/export.c @@ -192,5 +192,6 @@ const struct export_operations gfs2_export_ops = { .fh_to_parent = gfs2_fh_to_parent, .get_name = gfs2_get_name, .get_parent = gfs2_get_parent, + .flags = EXPORT_OP_ASYNC_LOCK, }; diff --git a/fs/ocfs2/export.c b/fs/ocfs2/export.c index eaa8c80ace3c..b8b6a191b5cb 100644 --- a/fs/ocfs2/export.c +++ b/fs/ocfs2/export.c @@ -280,4 +280,5 @@ const struct export_operations ocfs2_export_ops = { .fh_to_dentry = ocfs2_fh_to_dentry, .fh_to_parent = ocfs2_fh_to_parent, .get_parent = ocfs2_get_parent, + .flags = EXPORT_OP_ASYNC_LOCK, }; -- 2.31.1