Allow ufs_inactive() while a file system is suspending. Removes a possible

deadlock between vrele() and ffs_sync() during suspension.
This commit is contained in:
hannken 2010-03-15 09:20:10 +00:00
parent 0a92db93dc
commit afab4c313c
1 changed files with 3 additions and 3 deletions

View File

@ -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_inactive(void *v)
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.
*/