This may already be fixed, known, but... Dec 3 13:14:41 thebighonker kernel: lock order reversal: Dec 3 13:14:41 thebighonker kernel: 1st 0xffffff0093904c00 kqueue (kqueue) @ /usr/src/sys/kern/kern_event.c:1547 Dec 3 13:14:41 thebighonker kernel: 2nd 0xffffff007ffb16a8 struct mount mtx (struct mount mtx) @ /usr/src/sys/ufs/ufs/ufs_vnops.c:138 Dec 3 13:14:41 thebighonker kernel: KDB: stack backtrace: Dec 3 13:14:41 thebighonker kernel: witness_checkorder() at witness_checkorder+0x4da Dec 3 13:14:41 thebighonker kernel: _mtx_lock_flags() at _mtx_lock_flags+0x5c Dec 3 13:14:41 thebighonker kernel: ufs_itimes() at ufs_itimes+0x58 Dec 3 13:14:41 thebighonker kernel: ufs_getattr() at ufs_getattr+0x1f Dec 3 13:14:41 thebighonker kernel: VOP_GETATTR_APV() at VOP_GETATTR_APV+0x74 Dec 3 13:14:41 thebighonker kernel: filt_vfsread() at filt_vfsread+0x74 Dec 3 13:14:41 thebighonker kernel: knote() at knote+0xd5 Dec 3 13:14:41 thebighonker kernel: VOP_WRITE_APV() at VOP_WRITE_APV+0x17d Dec 3 13:14:41 thebighonker kernel: vn_write() at Dec 3 13:14:41 thebighonker kernel: vn_write+0x1ec Dec 3 13:14:41 thebighonker kernel: Dec 3 13:14:41 thebighonker kernel: dofilewrite() at dofilewrite+0x87 Dec 3 13:14:41 thebighonker kernel: kern_writev() at kern_writev+0x51 Dec 3 13:14:41 thebighonker kernel: write() at write+0x4a Dec 3 13:14:41 thebighonker kernel: syscall() at syscall+0x4b2 Dec 3 13:14:41 thebighonker kernel: Xfast_syscall() at Xfast_syscall+0xa8 Dec 3 13:14:41 thebighonker kernel: --- syscall (4, FreeBSD ELF64, write), rip = 0x4363dc, rsp = 0x7fffffffdd08, rbp = 0x1e --- -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
On Sun, 3 Dec 2006, Larry Rosenman wrote:> This may already be fixed, known, but...yes it is known; see "The LOR page": http://sources.zabbadoz.net/freebsd/lor.html#193> Dec 3 13:14:41 thebighonker kernel: lock order reversal: > Dec 3 13:14:41 thebighonker kernel: 1st 0xffffff0093904c00 kqueue (kqueue) @ /usr/src/sys/kern/kern_event.c:1547 > Dec 3 13:14:41 thebighonker kernel: 2nd 0xffffff007ffb16a8 struct mount mtx (struct mount mtx) @ /usr/src/sys/ufs/ufs/ufs_vnops.c:138-- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
On Sun, Dec 03, 2006 at 01:30:41PM -0600, Larry Rosenman wrote:> This may already be fixed, known, but... > > Dec 3 13:14:41 thebighonker kernel: lock order reversal: > Dec 3 13:14:41 thebighonker kernel: 1st 0xffffff0093904c00 kqueue (kqueue) > @ /usr/src/sys/kern/kern_event.c:1547 > Dec 3 13:14:41 thebighonker kernel: 2nd 0xffffff007ffb16a8 struct mount > mtx (struct mount mtx) @ /usr/src/sys/ufs/ufs/ufs_vnops.c:138 > Dec 3 13:14:41 thebighonker kernel: KDB: stack backtrace: > Dec 3 13:14:41 thebighonker kernel: witness_checkorder() at > witness_checkorder+0x4da > Dec 3 13:14:41 thebighonker kernel: _mtx_lock_flags() at > _mtx_lock_flags+0x5c > Dec 3 13:14:41 thebighonker kernel: ufs_itimes() at ufs_itimes+0x58 > Dec 3 13:14:41 thebighonker kernel: ufs_getattr() at ufs_getattr+0x1f > Dec 3 13:14:41 thebighonker kernel: VOP_GETATTR_APV() at > VOP_GETATTR_APV+0x74 > Dec 3 13:14:41 thebighonker kernel: filt_vfsread() at filt_vfsread+0x74 > Dec 3 13:14:41 thebighonker kernel: knote() at knote+0xd5 > Dec 3 13:14:41 thebighonker kernel: VOP_WRITE_APV() at VOP_WRITE_APV+0x17d > Dec 3 13:14:41 thebighonker kernel: vn_write() at > Dec 3 13:14:41 thebighonker kernel: vn_write+0x1ec > Dec 3 13:14:41 thebighonker kernel: > Dec 3 13:14:41 thebighonker kernel: dofilewrite() at dofilewrite+0x87 > Dec 3 13:14:41 thebighonker kernel: kern_writev() at kern_writev+0x51 > Dec 3 13:14:41 thebighonker kernel: write() at write+0x4a > Dec 3 13:14:41 thebighonker kernel: syscall() at syscall+0x4b2 > Dec 3 13:14:41 thebighonker kernel: Xfast_syscall() at Xfast_syscall+0xa8 > Dec 3 13:14:41 thebighonker kernel: --- syscall (4, FreeBSD ELF64, write), > rip = 0x4363dc, rsp = 0x7fffffffdd08, rbp = 0x1e ---Please, try the patch http://people.freebsd.org/~kib/kqueue-lor.1.patch -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20061203/059eae9a/attachment.pgp
On Sun, 3 Dec 2006, Kostik Belousov wrote:> > Please, try the patch > http://people.freebsd.org/~kib/kqueue-lor.1.patch >I had to manually apply the vnode_if.src portion. All the other hunks applied to a today cvsup from RELENG_6. Waiting for the compile to finish. LER -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893