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



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
--
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)


Home | Main Index | Thread Index | Old Index