From owner-cvs-src@FreeBSD.ORG Wed Sep 12 16:31:33 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BD5916A421; Wed, 12 Sep 2007 16:31:33 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7C74313C47E; Wed, 12 Sep 2007 16:31:33 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l8CGVXGA042231; Wed, 12 Sep 2007 16:31:33 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8CGVXUD042230; Wed, 12 Sep 2007 16:31:33 GMT (envelope-from kib) Message-Id: <200709121631.l8CGVXUD042230@repoman.freebsd.org> From: Konstantin Belousov Date: Wed, 12 Sep 2007 16:31:33 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sys mount.h src/sys/kern vfs_mount.c vfs_subr.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2007 16:31:33 -0000 kib 2007-09-12 16:31:33 UTC FreeBSD src repository Modified files: sys/sys mount.h sys/kern vfs_mount.c vfs_subr.c Log: When restoring the mount after umount failed, the MNTK_UNMOUNT flag prevents insmntque() from placing reallocated syncer vnode on mount list, that causes panic in vfs_allocate_syncvnode(). Introduce MNTK_NOINSMNTQ flag, that marks the period when instmntque is not allowed to success, instead of MNTK_UNMOUNT. The MNTK_NOINSMNTQ is set and cleared simultaneously with MNTK_UNMOUNT, except on umount error path, where it is cleaned just before the syncer vnode is going to be allocated. Reported by: Peter Jeremy Suggested by: tegge Approved by: re (rwatson) Revision Changes Path 1.265 +9 -4 src/sys/kern/vfs_mount.c 1.707 +1 -1 src/sys/kern/vfs_subr.c 1.228 +5 -0 src/sys/sys/mount.h