Received: by mail.netbsd.org (Postfix, from userid 605) id 2570914A1E9; Tue, 25 Sep 2012 16:11:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D2DA314A1E6 for ; Tue, 25 Sep 2012 16:11:43 +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 lOnfaJxvMR4D for ; Tue, 25 Sep 2012 16:11:43 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id BEAC114A1DE for ; Tue, 25 Sep 2012 16:11:42 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 9CF13175DD; Tue, 25 Sep 2012 16:11:42 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Tue, 25 Sep 2012 16:11:42 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/fs/tmpfs To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20120925161142.9CF13175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: riastradh Date: Tue Sep 25 16:11:42 UTC 2012 Modified Files: src/sys/fs/tmpfs: tmpfs_rename.c Log Message: Check tmpfs_rmdired_p after tmpfs_vnode_get when walking up the tree. tmpfs_vnode_get drops all locks except possibly the reclaiming bit lock to keep the tmpfs node from being reclaimed while we're still interested in it. Consequently, it does not keep the directory's existence invariant, so we must check that after tmpfs_vnode_get. Fixes PR kern/46990. Tested by Wolfgang Stukenbrock. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/fs/tmpfs/tmpfs_rename.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.