Module Name: src
Committed By: hannken
Date: Mon Mar 15 09:20:10 UTC 2010
Modified Files:
src/sys/ufs/ufs: ufs_inode.c
Log Message:
Allow ufs_inactive() while a file system is suspending. Removes a possible
deadlock between vrele() and ffs_sync() during suspension.
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/ufs/ufs/ufs_inode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/ufs/ufs/ufs_inode.c
diff -u src/sys/ufs/ufs/ufs_inode.c:1.79 src/sys/ufs/ufs/ufs_inode.c:1.80
--- src/sys/ufs/ufs/ufs_inode.c:1.79 Sun Feb 7 17:12:40 2010
+++ src/sys/ufs/ufs/ufs_inode.c Mon Mar 15 09:20:10 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_inode.c,v 1.79 2010/02/07 17:12:40 bouyer Exp $ */
+/* $NetBSD: ufs_inode.c,v 1.80 2010/03/15 09:20:10 hannken Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_inode.c,v 1.79 2010/02/07 17:12:40 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_inode.c,v 1.80 2010/03/15 09:20:10 hannken Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -92,7 +92,7 @@
UFS_WAPBL_JUNLOCK_ASSERT(vp->v_mount);
transmp = vp->v_mount;
- fstrans_start(transmp, FSTRANS_SHARED);
+ fstrans_start(transmp, FSTRANS_LAZY);
/*
* Ignore inodes related to stale file handles.
*/