Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp634rdh; Tue, 6 Feb 2024 16:41:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV5uMlmf5HVlxj2k5GrbBx7DXoXE2/f8vri3ll6CLbCZTuTJH0eNegphId91WKaOBXbiFH5lDzbS9eekSb0/DZrOmBgWHdsdhaPeyOrxQ== X-Google-Smtp-Source: AGHT+IErCkTFSOKtpj/BGuTpglMkiKtchThE/YFt13vJnuTbp4XnOwWAlXpoSakQZ4eIJKimbzKq X-Received: by 2002:a2e:b002:0:b0:2d0:a52d:5510 with SMTP id y2-20020a2eb002000000b002d0a52d5510mr3152135ljk.39.1707266495884; Tue, 06 Feb 2024 16:41:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707266495; cv=pass; d=google.com; s=arc-20160816; b=r+r2Lp0qXN7MF2qCgZTLj64XhI1tKDqK1dyIS/vUys44SlbnmP7seyzuRwhCL1XSVE +R8/hLxWb+wxy7sMGjP8/+4JHNNwwHqsg3v1pXdU+X6BqcEML0s0Px0d8ZA4q8bi9aAC 70xdGfXWnylPqnd32F73b2+mSn/StZVSoHamcJZFkIDWFWEGkciVKBWcZ0pofG9uCJ1B VJh/p46IvWLKA8LHpALdYIrtalG5wZQ1sn1vO1Mi9g6oA8zHk+2Sh2iZ0bmCCSl6L/7P Xf2z33ITO5imxtAoyhw0fRGPVWQAPugDL+lBy9kPJa+M6CkuIZgErqjkjM1FxYtn1c2E N+nw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=A6Qs5ml23u4lBTJh/n/0jZCbBZW7uELlezDPWWgN0J8=; fh=UQDZAFi95y+V0FqA8ujNMxrFjrmW/zV1w95x1s8EhtU=; b=UkjflNyzF08ABjorbQIOgI+qAQl/GnATevd7SeqcvA/VXBM3IMCIRod+XAMXQqlt5O Hb4uZkgtn28hY6xPqNajf0maSOTWhynKvxRORVNwMRKgqe826fCPtxFPWURLtfivXLzR uoIGLqDGCQfw7QcHcWndc7pbVGb+6z4qd/aaW0DEZzt/YTB30X7q/WrFZlKpz/gKz2A6 p8eGn20yMu+9IlJ6UXCP8h0ClcjrrItSYhunRfVkEn80qdKVdQiiy34kBMeVaJudhwqs Yvw66mG3eR7pVTQFhHx0Yd4XSBBxW00lPHVGh5jkb57VlgkeRpG8Z9RhQrVey35ctdGs YU2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="E/rKhbtw"; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-55765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au X-Forwarded-Encrypted: i=2; AJvYcCWXPEkvbftVZEzRGTcvn/+olZdlgAZTPXOm2udzB25EMFIN6dDEYpLlWXxpdY2RbxNT+1uo2lUU47CX7DEHmXEm0AcwcRAp8F4V08h0hA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c10-20020aa7c98a000000b0056066426de5si120677edt.270.2024.02.06.16.41.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 16:41:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="E/rKhbtw"; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-55765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7DCE91F2428E for ; Wed, 7 Feb 2024 00:41:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B9A69461; Wed, 7 Feb 2024 00:41:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="E/rKhbtw" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 EF5A48F5B; Wed, 7 Feb 2024 00:41:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707266486; cv=none; b=GvYnLcInh0Osf+5oKLF00rNry3Hi6tepun59WFPs8A5E3NseGkRehjXtnjoTcYyO5lItuU159FEmi7P+QSXr5LjYMZZkEweONLZPLG+tUkrG8sN3FuFr5SfEwpogr96kZJQSGGcLDoKpKi6V6DetbjLMs6J30GPfwCFIq8m92fA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707266486; c=relaxed/simple; bh=xu1OgSfieAmqr6ZB1/qhT/qsNfkCz0aPs5VpDOCSIUs=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=pUB4xV8FemLztnsD1sZQ/gYcUxaOu9q8uRMVkjW5WLDWtyQFvPXLcxxecSyYYPYjxe5bql5bkk7s04kpb7msQJKGxg6XoqOQNz3KuH55tYEPOF8GWQwii7gCuevNTci4JKiDJwayOEKpS4KjvdJi2NsyPnwKn9IlENWFe/pp4XQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=E/rKhbtw; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1707266480; bh=A6Qs5ml23u4lBTJh/n/0jZCbBZW7uELlezDPWWgN0J8=; h=Date:From:To:Cc:Subject:From; b=E/rKhbtwWOJc8LiVaynuOO9xIkqGN+aXx12r2Xsi4yauR4r0/PPWDYg0aKPNtcB8P lrQYtwWEyxtCbgIkEiZF1E8UszDCG/J1vJwO/RAJMCtIlw03ro1TZU+8Se8XIWQIGH z+Bu0Nr0dO7OCp+vD06PPD6K8iRXr5US6wWW1fVaKQsu3Cefo7YxjQ6sFab683Y2eT oM/8uWqF4txJAwV7O+cPQtomCJ4gmzAT+TnP5BG/D0QFiPcE4kIUAezl0oLc25er8s GBi8YOpBA17vV+j0DyC/Pd+n33h2/oG+2STyJqRN90RoaPXwNV5sshBVNJP/U0WBHD 5FA7BrFppLcCg== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4TV1Wh0TLyz4wc9; Wed, 7 Feb 2024 11:41:20 +1100 (AEDT) Date: Wed, 7 Feb 2024 11:41:18 +1100 From: Stephen Rothwell To: Christian Brauner , Chuck Lever Cc: Jeff Layton , Linux Kernel Mailing List , Linux Next Mailing List , NeilBrown Subject: linux-next: manual merge of the vfs-brauner tree with the nfsd tree Message-ID: <20240207114118.23541d8c@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/DtkOBEOcZdottnUzaMe92L0"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/DtkOBEOcZdottnUzaMe92L0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the vfs-brauner tree got a conflict in: fs/nfsd/nfs4layouts.c between commit: b1f1961080c4 ("nfsd: allow layout state to be admin-revoked.") from the nfsd tree and commit: 7b8001013d72 ("filelock: don't do security checks on nfsd setlease calls") from the vfs-brauner tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc fs/nfsd/nfs4layouts.c index b1e585c1d9a3,4c0d00bdfbb1..4f3072b5979a --- a/fs/nfsd/nfs4layouts.c +++ b/fs/nfsd/nfs4layouts.c @@@ -152,23 -152,6 +152,23 @@@ void nfsd4_setup_layout_type(struct svc #endif } =20 +void nfsd4_close_layout(struct nfs4_layout_stateid *ls) +{ + struct nfsd_file *fl; + + spin_lock(&ls->ls_stid.sc_file->fi_lock); + fl =3D ls->ls_file; + ls->ls_file =3D NULL; + spin_unlock(&ls->ls_stid.sc_file->fi_lock); + + if (fl) { + if (!nfsd4_layout_ops[ls->ls_layout_type]->disable_recalls) - vfs_setlease(fl->nf_file, F_UNLCK, NULL, - (void **)&ls); ++ kernel_setlease(fl->nf_file, F_UNLCK, NULL, ++ (void **)&ls); + nfsd_file_put(fl); + } +} + static void nfsd4_free_layout_stateid(struct nfs4_stid *stid) { --Sig_/DtkOBEOcZdottnUzaMe92L0 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmXC0a4ACgkQAVBC80lX 0GxmsQf/eZ3P37ukiU2TR8Uc0lKysFXIwuRyIhT3WLqvodtAXFkd1wmCjJN0Df63 H+SWdzVEJ/PeLcZTBTCI8GyajphrLMcmUILze7lrbqDf59ZjwWwgsNjnAnoE3vn3 RxHrpEm5gv+9rWvr1MTSKtt3ee2PVYCeQnbpMBt4Mr1FD0J+GOtplLYRHXvYrD0I +GTZDT77zivSSu76SeJ8Qe/04NnNQlIqmScon9NXy4yW8zB828J6K6xeEli+HGiW hao1dMlw4+iO9k22kwdT+AGw+Arlet8sTVpkCbv20BiQaGN32OMO+Oc8erEVsRW5 xNuMWxFdhNf9eEiWFM14ZD6ugs4XIw== =+Ohv -----END PGP SIGNATURE----- --Sig_/DtkOBEOcZdottnUzaMe92L0--