From owner-cvs-src-old@FreeBSD.ORG Sat Feb 14 23:02:45 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4776106566B for ; Sat, 14 Feb 2009 23:02:45 +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 908928FC13 for ; Sat, 14 Feb 2009 23:02:45 +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 n1EN2jUW064450 for ; Sat, 14 Feb 2009 23:02:45 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1EN2j3j064449 for cvs-src-old@freebsd.org; Sat, 14 Feb 2009 23:02:45 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200902142302.n1EN2j3j064449@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Sat, 14 Feb 2009 23:02:21 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 23:02:46 -0000 kib 2009-02-14 23:02:21 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) 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 188620 on 2009-02-14 23:02:21Z by kib MFC r183073: 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. Note that addition of the mount method and new struct mount field change the KBI. This was approved by re and no objections on stable@ were raised. Revision Changes Path 1.252.2.5 +23 -12 src/sys/kern/vfs_vnops.c 1.228.2.4 +6 -0 src/sys/sys/mount.h 1.491.2.11 +1 -0 src/sys/sys/proc.h 1.74.2.4 +1 -0 src/sys/ufs/ffs/ffs_extern.h 1.136.2.4 +5 -2 src/sys/ufs/ffs/ffs_snapshot.c 1.329.2.10 +1 -0 src/sys/ufs/ffs/ffs_vfsops.c