From nobody Sat Nov 30 06:35:25 2024 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64DA21BB69D for ; Wed, 11 Sep 2024 19:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726083805; cv=none; b=fTbidp4nIKNdHvIy+X05eKc+BHM6QidL2sngMZ0hckwcNJhGzpwWkwr3P4EqnNAslowm7qaTLYt8ObuhoKUMdpIGX7RNebfkC0RHi7+kVZCf9QIE/2Me3UHM0DIs59turDkxAVRrFFf/C14rDlI7swHbbkLTVh6s39MrJtjE9JQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726083805; c=relaxed/simple; bh=YX7ObtXJ2YjTVLS7KdkFBLKT+i/Pn28RHIFNRG4BOIc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DF0q2YKDu/q+/BkFUmLA2V3zehlEWNTrabXiPrUooUW6IqxZHAT7NgVEuEXeAoSU+T3myj/yBjhK6hrvLYuo1771gyzbPV+6Ia0usn4F5FAHT1wiBzvbfloOT+s3ucoEm029RAWTXOYJqgJDlXxzcCEL25SV2furXS6cFieJU+Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=aO4ySEt4; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aO4ySEt4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1726083803; 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=bPLgX1Q9d4+4urj+73qqK9akNSzqf2/CnGKfFlJlHGY=; b=aO4ySEt4gpvzcIyzB5pUgVd5lGr84MEML2O2MDBmxTSt4ocZuL8IzvC2PNzryMv4JVCI/y cxqUTNuKYkJpo36ajPKspi1LBvSpzAehr/nwJdVlHFWo4YfJiL2OhzklkMgo1X97jQA5i2 jwJ62QPgXslorVM+ajwMhcy8cc2jJYQ= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-618-PEnLAncROZasySFNq4XPUg-1; Wed, 11 Sep 2024 15:43:20 -0400 X-MC-Unique: PEnLAncROZasySFNq4XPUg-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 39A3A19560A2; Wed, 11 Sep 2024 19:43:17 +0000 (UTC) Received: from bcodding.csb.redhat.com (unknown [10.22.48.7]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C53BB1956086; Wed, 11 Sep 2024 19:43:12 +0000 (UTC) From: Benjamin Coddington To: Chuck Lever , Jeff Layton , Amir Goldstein , Neil Brown , Trond Myklebust , Anna Schumaker , Jonathan Corbet , Andreas Gruenbacher , Mark Fasheh , Joel Becker , Joseph Qi , Alexander Viro , Christian Brauner , Jan Kara , Alexander Ahring Oder Aring Cc: linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, gfs2@lists.linux.dev, ocfs2-devel@lists.linux.dev Subject: [PATCH v1 2/4] gfs2/ocfs2: set FOP_ASYNC_LOCK Date: Wed, 11 Sep 2024 15:42:58 -0400 Message-ID: In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 Content-Type: text/plain; charset="utf-8" Both GFS2 and OCFS2 use DLM locking, which will allow async lock requests. Signal this support by setting FOP_ASYNC_LOCK. Signed-off-by: Benjamin Coddington --- fs/gfs2/file.c | 2 ++ fs/ocfs2/file.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 08982937b5df..b9ed2602287d 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c @@ -1586,6 +1586,7 @@ const struct file_operations gfs2_file_fops =3D { .splice_write =3D gfs2_file_splice_write, .setlease =3D simple_nosetlease, .fallocate =3D gfs2_fallocate, + .fop_flags =3D FOP_ASYNC_LOCK, }; =20 const struct file_operations gfs2_dir_fops =3D { @@ -1598,6 +1599,7 @@ const struct file_operations gfs2_dir_fops =3D { .lock =3D gfs2_lock, .flock =3D gfs2_flock, .llseek =3D default_llseek, + .fop_flags =3D FOP_ASYNC_LOCK, }; =20 #endif /* CONFIG_GFS2_FS_LOCKING_DLM */ diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index ccc57038a977..a642f1adee6a 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2793,6 +2793,7 @@ const struct file_operations ocfs2_fops =3D { .splice_write =3D iter_file_splice_write, .fallocate =3D ocfs2_fallocate, .remap_file_range =3D ocfs2_remap_file_range, + .fop_flags =3D FOP_ASYNC_LOCK, }; =20 WRAP_DIR_ITER(ocfs2_readdir) // FIXME! @@ -2809,6 +2810,7 @@ const struct file_operations ocfs2_dops =3D { #endif .lock =3D ocfs2_lock, .flock =3D ocfs2_flock, + .fop_flags =3D FOP_ASYNC_LOCK, }; =20 /* --=20 2.44.0