From owner-cvs-all@FreeBSD.ORG Tue Nov 7 16:56:12 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67EDC16A417; Tue, 7 Nov 2006 16:56:12 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 228B343D53; Tue, 7 Nov 2006 16:56:12 +0000 (GMT) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kA7GuCW5098074; Tue, 7 Nov 2006 16:56:12 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kA7GuBa2098072; Tue, 7 Nov 2006 16:56:11 GMT (envelope-from kib) Message-Id: <200611071656.kA7GuBa2098072@repoman.freebsd.org> From: Konstantin Belousov Date: Tue, 7 Nov 2006 16:56:11 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/ufs/ffs ffs_inode.c ffs_snapshot.c ffs_vnops.c src/sys/ufs/ufs inode.h ufs_vnops.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: Tue, 07 Nov 2006 16:56:12 -0000 kib 2006-11-07 16:56:11 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/ufs/ffs ffs_inode.c ffs_snapshot.c ffs_vnops.c sys/ufs/ufs inode.h ufs_vnops.c Log: MFC sys/ufs/ffs/ffs_inode.c rev. 1.107 sys/ufs/ffs/ffs_snapshot.c rev. 1.131 sys/ufs/ffs/ffs_vnops.c rev. 1.161 sys/ufs/ufs/inode.h rev. 1.51 sys/ufs/ufs/ufs_vnops.c rev. 1.280 Do not translate the IN_ACCESS inode flag into the IN_MODIFIED while filesystem is suspending/suspended. Doing so may result in deadlock. Instead, set the (new) IN_LAZYACCESS flag, that becomes IN_MODIFIED when suspend is lifted. Change the locking protocol in order to set the IN_ACCESS and timestamps without upgrading shared vnode lock to exclusive (see comments in the inode.h). Before that, inode was modified while holding only shared lock. Tested on RELENG_6 by: Peter Holm Approved by: re (kensmith) Revision Changes Path 1.106.2.1 +7 -5 src/sys/ufs/ffs/ffs_inode.c 1.103.2.21 +18 -6 src/sys/ufs/ffs/ffs_snapshot.c 1.157.2.4 +8 -2 src/sys/ufs/ffs/ffs_vnops.c 1.49.2.1 +9 -0 src/sys/ufs/ufs/inode.h 1.271.2.7 +47 -21 src/sys/ufs/ufs/ufs_vnops.c