* Szilveszter Adam <[EMAIL PROTECTED]> [010519 16:53] wrote:
> Hello everybody,
> 
> I guess I was just being too happy so it had to get me this time:-) I was
> building Mozilla when it struck. Today's -CURRENT, kernel & world in sync,
> no softupdates.
> 
> panic: mutex vm not owned at ../../vm/vm_page.h:328
> Debugger("panic")
> 
> Stopped at   Debugger
> 
> trace:
> Debugger
> panic
> _mtx_assert
> swp_pager_async_iodone
> _iodone
> bufdone
> bufdonebio
> ad_interrupt
> ata_intr
> fork_exit 
> fork_trampoline
> 
> Unfortunately, dumping still doesn't work, I get the old and familiar:
> dump ata0: resetting devices... panic: witness_restore: lock (sleep mutex)
> Giant not locked.
> 
> So there is no crash dump.

Thanks for the traceback, can you apply this patch then try
to get your machine to swap?


Index: swap_pager.c
===================================================================
RCS file: /home/ncvs/src/sys/vm/swap_pager.c,v
retrieving revision 1.155
diff -u -r1.155 swap_pager.c
--- swap_pager.c        2001/05/19 01:28:08     1.155
+++ swap_pager.c        2001/05/20 01:58:06
@@ -1474,8 +1474,8 @@
                 */
 
                mtx_unlock(&Giant);
-               mtx_lock(&vm_mtx);
                swp_pager_async_iodone(bp);
+               mtx_lock(&vm_mtx);
 
                splx(s);
        }
@@ -1554,7 +1554,7 @@
        /*
         * remove the mapping for kernel virtual
         */
-
+       mtx_lock(&vm_mtx);
        pmap_qremove((vm_offset_t)bp->b_data, bp->b_npages);
 
        /*
@@ -1689,6 +1689,7 @@
        if (object)
                vm_object_pip_wakeupn(object, bp->b_npages);
 
+       mtx_unlock(&vm_mtx);
        /*
         * release the physical I/O buffer
         */
-- 
-Alfred Perlstein [[EMAIL PROTECTED]]
Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to