Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp908154rdb; Sun, 18 Feb 2024 19:02:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUk8MVb2IwW+sW6S3Gi1nUSe23B6NzNOesbX7zB31E5e/vP/mgXSCnOXty0QsKL5ZEsek/NU1Ngu3uq78QKKMQshbdZ++DKNMuNi6Vo+A== X-Google-Smtp-Source: AGHT+IGzMTVVfPLT9qBnk+Awe28sud2bLL/iUZXoHGTGYsJXO9m4bKocoN0W+VlP9m1WkNWEhI8l X-Received: by 2002:a05:6830:20c8:b0:6e2:df01:8058 with SMTP id z8-20020a05683020c800b006e2df018058mr12483516otq.17.1708311766794; Sun, 18 Feb 2024 19:02:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708311766; cv=pass; d=google.com; s=arc-20160816; b=lobc5AEofhwjzj2cay1uly2yZEBy1gN1gVH30KtzccBnDVM01V3OYSaQYm/Ydt/3AK N9vogyRrkPMBd925sqcvQzfQnbMtjFTWIm+WpDzpSL93CHi7l8ilIROTi+W4TRFxDW7H 5FmK53Rs8nz5Yesnj4hp0atAUVOpAPCe0FqpeptODpP2A7MbsbF8E5n2xi3pqKmHvN+b 6WSKYBMe3AO2o03Ozd0QpK++yJuKFWEqNrSXG4kEBw5wvnjOT6pmU8muj0ndbeqSpkuK bKWcMCKNNMq9cUhTusJyldYu5HvMDiR6exfbhK6lOzpC1aqIWG7uD1eSNfw7mkkTwyLO UDoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=Nb/Mp519U7aJJW1i5VaP1nx2e9Ux8ZYOxe4Hga8Lhgs=; fh=A3pMOUK00huGibGCZBFsLekFLVbB5hHGKjUNNKwO+5E=; b=dbocsNQtXUyb/wxW/4jg9JQ5DTDyU6xda+QQWziOYRkq92GwZzEyv45JBpap1fS/zW Rol8yXiImc6DGVxleqRr7VDZUeFKuipvPJv5j04nzA9xH1coNGAvRCguQ3mS16ZPgO5t AmnMH0afMyWK+3VT0Q8VnRmRmcX2VweEClS7cIYsk00CAbGlkW+gk9TBht8/0oZ+WB3s uwMRwWE+sGM6bCnmQQSf7TNpI7MyOSQSIVV9Z9yfu3VPbPZTCNGymB/XpVE+G79T2ltl crL8wvdZLHAQOCRX35vY03tIfr58khxAgR23CCeA86YrbUYV/9dKz9ZPFs9beBBSFw5M MHJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-2026-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2026-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v18-20020ac85792000000b0042c37acc033si2933696qta.378.2024.02.18.19.02.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 19:02:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2026-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-2026-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2026-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B47C1C20EAF for ; Mon, 19 Feb 2024 03:02:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 074641FDB; Mon, 19 Feb 2024 03:02:45 +0000 (UTC) X-Original-To: linux-nfs@vger.kernel.org Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35C771FC8 for ; Mon, 19 Feb 2024 03:02:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708311764; cv=none; b=tnTfg6r2KmNFh31LO+TfmCdk5Je/XzwLphE/QmW4k2j2ib3tL2qlAGO6YiIEqgfWCRU7H1eWOtd4M6BbhG8Jhi9SJTAQkklPVamW8UbsP2gLj75CEim90wJKuQzkXVfs6En1N5BES2LxT9sVEmRRVnH8ZbOzMzXaER+ZuLudUvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708311764; c=relaxed/simple; bh=BbyjbUd5AEcRtsQyZYm3uHKHxWjmkGGKV+1JxaVgpQk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=fOHKpoxBeb9hiDgUHOcif35QyOJG5wwf95HqoKLUWRQ005erWbwg1fQR/GLOWrrAmTxd3OalpqdHfv4pOr/V28u9cb7fmdZwZVxu9b1z7Y4CwxPvJV2GWvezVdzkFfnJNtNemSjsojOrQbWwpOlfPqMh4i+odd6NezJN47Vnuog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nrubsig.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.166.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nrubsig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7bfe5aa702fso156095039f.3 for ; Sun, 18 Feb 2024 19:02:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708311762; x=1708916562; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Nb/Mp519U7aJJW1i5VaP1nx2e9Ux8ZYOxe4Hga8Lhgs=; b=SRoQKm7gMuDQjNF7i4RZ9wEcFFTHMUW+Lt2J//uXtn3weTIzPOxdXPhy2HByLr9vrM 5AV454VmbeVlF+cgWCFbwc19vTSxQV2Eofr9JYO6RF/DtUulXqk9Ajj5Y00Bp+0pJx53 mRuubtp6WM+E2iko+57caEs2RSqPPKCZcPdAc2uSwhYa9tY/MaF0YLbsPkQri/20kKHs L6HBBjRk2lcXknhOkbrM7XxANVhJ06qdISKCVnaVmi0kTnkxDu4QaUepYfHUBQ8SFENA Eh6OlIViiewG/RaAMnbtf/5JcHRGmlYpn+50kAeySuRcG2fC/56tPOFI0U0ZDaYKsjzo JWig== X-Gm-Message-State: AOJu0YwtBOEP3S113YfOitQQiJNOC5hkbQ6ewk6FbDNRX96rdNGEuwE6 NKHwED/8FPLlNa623WXwT+7FlyTcQ0/BmA2FEk+d7wi3mTDaYKje5VJmzYD0x98W3XW4bKAS+ga S5itZXHzNtwY5/0TBeC1+MnQLoc3s8IDGavk= X-Received: by 2002:a5d:9608:0:b0:7c7:3a2b:3c25 with SMTP id w8-20020a5d9608000000b007c73a2b3c25mr5036567iol.20.1708311762046; Sun, 18 Feb 2024 19:02:42 -0800 (PST) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Roland Mainz Date: Mon, 19 Feb 2024 04:02:15 +0100 Message-ID: Subject: Re: "nfsd: inode locked twice during operation." errors ... To: Linux NFS Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 18, 2024 at 5:45=E2=80=AFPM Chuck Lever wrote: > On Sun, Feb 18, 2024 at 01:00:33PM +0100, Roland Mainz wrote: > > I'm getting the following errors from nfsd in the kernel log on a regul= ar basis: > > ---- snip ---- > > [349278.877256] nfsd: inode locked twice during operation. > > [349279.599457] nfsd: inode locked twice during operation. > > [349280.302697] nfsd: inode locked twice during operation. > > [349280.803115] nfsd: inode locked twice during operation. > > ---- snip ---- > > > > nfsd runs on "Linux 5.10.0-22-rt-686-pae #1 SMP PREEMPT_RT Debian > > 5.10.178-3 (2023-04-22) i686 GNU/Linux", exported filesystem is btrfs > > on a SSD. > > NFSv4.1 client is the Windows ms-nfs41-client (git > > #e67a792c4249600164852cfc470ac0acdb9f043b) compiling gcc under Cygwin > > 3.5.0. > > > > Is the nfsd issue known, and if "yes" is there a patch ? > > I believe that warning message vanishes as a side-effect of this > series of commits: > > 7fe2a71dda34 NFSD: introduce struct nfsd_attrs > 93adc1e391a7 NFSD: set attributes when creating symlinks > d6a97d3f589a NFSD: add security label to struct nfsd_attrs > c0cbe70742f4 NFSD: add posix ACLs to struct nfsd_attrs > 927bfc5600cd NFSD: change nfsd_create()/nfsd_symlink() to unlock director= y before returning. > b677c0c63a13 NFSD: always drop directory lock in nfsd_unlink() > e18bcb33bc5b NFSD: only call fh_unlock() once in nfsd_link() > 19d008b46941 NFSD: reduce locking in nfsd_lookup() > debf16f0c671 NFSD: use explicit lock/unlock for directory ops > bb4d53d66e4b NFSD: use (un)lock_inode instead of fh_(un)lock for file ope= rations > dd8dd403d7b2 NFSD: discard fh_locked flag and fh_lock/fh_unlock > > plus this fix: > > 00801cd92d91 NFSD: fix regression with setting ACLs. Ouch... ;-( ... so the patch at the bottom of https://patchwork.kernel.org/project/linux-nfs/patch/533299E9.6010806@gmail= .com/#8291331 is not sufficient, right ? > Any upstream Linux kernel after v6.0 should operate without that > warning. I don't see those commits in origin/linux-5.10.y. Are the kernels in the Linux 6.6-stable branch "safe" as NFSv4.x for NFSv4.1 client development ? ---- Bye, Roland --=20 __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /=3D=3D\ O\ TEL +49 641 3992797 (;O/ \/ \O;)