Seen during stress tests of NFS w/ lockd: panic: vinvalbuf: dirty bufs cpuid = 13 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe081e6d11c0 vpanic() at vpanic+0x25e/frame 0xfffffe081e6d1290 kproc_shutdown() at kproc_shutdown/frame 0xfffffe081e6d12f0 bufobj_invalbuf() at bufobj_invalbuf+0x149/frame 0xfffffe081e6d1340 vinvalbuf() at vinvalbuf+0x80/frame 0xfffffe081e6d1370 vfs_domount_first() at vfs_domount_first+0x141/frame 0xfffffe081e6d15d0 vfs_domount() at vfs_domount+0x462/frame 0xfffffe081e6d17a0 vfs_donmount() at vfs_donmount+0x902/frame 0xfffffe081e6d1850 sys_nmount() at sys_nmount+0xd8/frame 0xfffffe081e6d18a0 syscallenter() at syscallenter+0x516/frame 0xfffffe081e6d1980 amd64_syscall() at amd64_syscall+0x62/frame 0xfffffe081e6d1ab0 Details @ https://people.freebsd.org/~pho/stress/log/crossmp6.txt Test scenario: https://people.freebsd.org/~pho/crossmp6.sh
Fixed and verified by r283968.