From owner-cvs-src@FreeBSD.ORG Tue Sep 16 11:51:32 2008 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 48AEF106568C; Tue, 16 Sep 2008 11:51:32 +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 3A88A8FC19; Tue, 16 Sep 2008 11:51:32 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8GBpWei074015; Tue, 16 Sep 2008 11:51:32 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8GBpWZX073996; Tue, 16 Sep 2008 11:51:32 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200809161151.m8GBpWZX073996@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Tue, 16 Sep 2008 11:51:06 +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/kern vfs_vnops.c src/sys/sys mount.h proc.h src/sys/ufs/ffs ffs_extern.h ffs_snapshot.c ffs_vfsops.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: Tue, 16 Sep 2008 11:51:32 -0000 kib 2008-09-16 11:51:06 UTC FreeBSD src repository Modified files: sys/kern vfs_vnops.c sys/sys mount.h proc.h sys/ufs/ffs ffs_extern.h ffs_snapshot.c ffs_vfsops.c Log: SVN rev 183073 on 2008-09-16 11:51:06Z by kib When attempt is made to suspend a filesystem that is already syspended, wait until the current suspension is lifted instead of silently returning success immediately. The consequences of calling vfs_write() resume when not owning the suspension are not well-defined at best. Add the vfs_susp_clean() mount method to be called from vfs_write_resume(). Set it to process_deferred_inactive() for ffs, and stop calling it manually. Add the thread flag TDP_IGNSUSP that allows to bypass the suspension point in the vn_start_write. It is intended for use by VFS in the situations where the suspender want to do some i/o requiring calls to vn_start_write(), and this i/o cannot be done later. Reviewed by: tegge In collaboration with: pho MFC after: 1 month Revision Changes Path 1.265 +23 -12 src/sys/kern/vfs_vnops.c 1.233 +6 -0 src/sys/sys/mount.h 1.520 +1 -0 src/sys/sys/proc.h 1.77 +1 -0 src/sys/ufs/ffs/ffs_extern.h 1.145 +5 -2 src/sys/ufs/ffs/ffs_snapshot.c 1.349 +1 -0 src/sys/ufs/ffs/ffs_vfsops.c