Received: by mail.netbsd.org (Postfix, from userid 605) id C7B3384F50; Mon, 22 Aug 2022 09:15:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 0509784F4E for ; Mon, 22 Aug 2022 09:15:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id o-solrKmaDO2 for ; Mon, 22 Aug 2022 09:14:59 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 95AFF84E6E for ; Mon, 22 Aug 2022 09:14:59 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 932FDFB1A; Mon, 22 Aug 2022 09:14:59 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Mon, 22 Aug 2022 09:14:59 +0000 From: "Juergen Hannken-Illjes" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20220822091459.932FDFB1A@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Juergen Hannken-Illjes" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: hannken Date: Mon Aug 22 09:14:59 UTC 2022 Modified Files: src/sys/kern: vfs_lookup.c Log Message: Use fstrans_start()/fstrans_done() to cross the mount in lookup_crossmount(). It is sufficient here as it prevents the file system from unmount and makes it safe to use VFS_ROOT() here. Removes a rare deadlock where one thread has "foundobj" locked and waits for "foundobj->v_mountedhere" to resume while the thread holding the file system suspended tries to lookup a node and needs a lock on "foundobj". To generate a diff of this commit: cvs rdiff -u -r1.231 -r1.232 src/sys/kern/vfs_lookup.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.