From a695d5440401704502e152fbed63fee113c6da0c Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 8 Mar 2006 02:14:39 +0000 Subject: [PATCH] Don't set IN_CHANGE and IN_UPDATE on inodes for potentially suspended file systems. This could cause deadlocks when creating snapshots. Reviewed by: jeff --- sys/ufs/ufs/ufs_lookup.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c index a683e352a0d..b420378eb95 100644 --- a/sys/ufs/ufs/ufs_lookup.c +++ b/sys/ufs/ufs/ufs_lookup.c @@ -422,7 +422,6 @@ notfound: enduseful = slotoffset + slotsize; } dp->i_endoff = roundup2(enduseful, DIRBLKSIZ); - dp->i_flag |= IN_CHANGE | IN_UPDATE; /* * We return with the directory locked, so that * the parameters we set up above will still be