NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/42205: kernel panic at activated userquota
The following reply was made to PR kern/42205; it has been noted by GNATS.
From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost,
netbsd-bugs%NetBSD.org@localhost
Subject: Re: kern/42205: kernel panic at activated userquota
Date: Tue, 20 Oct 2009 22:12:45 +0200
--Bn2rw/3z4jIqBvZU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Tue, Oct 20, 2009 at 09:39:02PM +0200, Manuel Bouyer wrote:
> The attached patch may help, but it's untested and probably not the
> right way of fixing this.
Ops, I did it again.
The patch is really attached this time
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
--Bn2rw/3z4jIqBvZU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
Index: ufs_quota.c
===================================================================
RCS file: /cvsroot/src/sys/ufs/ufs/ufs_quota.c,v
retrieving revision 1.60.10.3
diff -u -p -u -r1.60.10.3 ufs_quota.c
--- ufs_quota.c 7 Aug 2009 05:59:44 -0000 1.60.10.3
+++ ufs_quota.c 20 Oct 2009 19:38:13 -0000
@@ -743,6 +743,13 @@ qsync(struct mount *mp)
}
continue;
}
+ if (VTOI(vp) == NULL) {
+ mutex_enter(&mntvnode_lock);
+ vunmark(mvp);
+ vlockmgr(vp->v_vnlock, LK_RELEASE);
+ vrele(vp);
+ goto again;
+ }
for (i = 0; i < MAXQUOTAS; i++) {
dq = VTOI(vp)->i_dquot[i];
if (dq == NODQUOT)
--Bn2rw/3z4jIqBvZU--
Home |
Main Index |
Thread Index |
Old Index