From owner-cvs-all@FreeBSD.ORG Thu Aug 28 09:18:35 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7A101065687; Thu, 28 Aug 2008 09:18:35 +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 CA7FE8FC24; Thu, 28 Aug 2008 09:18:35 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m7S9IZ5M063768; Thu, 28 Aug 2008 09:18:35 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7S9IZhl063767; Thu, 28 Aug 2008 09:18:35 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200808280918.m7S9IZhl063767@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Thu, 28 Aug 2008 09:18:20 +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/ufs/ffs ffs_extern.h ffs_softdep.c ffs_vfsops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2008 09:18:36 -0000 kib 2008-08-28 09:18:20 UTC FreeBSD src repository Modified files: sys/ufs/ffs ffs_extern.h ffs_softdep.c ffs_vfsops.c Log: SVN rev 182365 on 2008-08-28 09:18:20Z by kib Softdep code may need to instantiate vnode when processing dependencies. In particular, it may need this while syncing filesystem being unmounted. Since during unmount MNTK_NOINSMNTQUE flag is set, that could sometimes disallow insertion of the vnode into the vnode mount list, softdep code needs to overwrite the MNTK_NOINSMNTQUE flag. Create the ffs_vgetf() function that sets the VV_FORCEINSMQ flag for new vnode and use it consistently from the softdep code instead of ffs_vget(). Add the retry logic to the softdep_flushfiles() to flush the vnodes that could be instantiated while flushing softdep dependencies. Tested by: pho, kris Reviewed by: tegge MFC after: 1 month Revision Changes Path 1.75 +3 -0 src/sys/ufs/ffs/ffs_extern.h 1.224 +42 -15 src/sys/ufs/ffs/ffs_softdep.c 1.346 +14 -0 src/sys/ufs/ffs/ffs_vfsops.c