From owner-freebsd-current@FreeBSD.ORG Fri Jun 8 20:01:29 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98DBA106564A for ; Fri, 8 Jun 2012 20:01:29 +0000 (UTC) (envelope-from se@freebsd.org) Received: from nm14-vm0.bullet.mail.ird.yahoo.com (nm14-vm0.bullet.mail.ird.yahoo.com [77.238.189.193]) by mx1.freebsd.org (Postfix) with SMTP id DE54F8FC1B for ; Fri, 8 Jun 2012 20:01:28 +0000 (UTC) Received: from [77.238.189.234] by nm14.bullet.mail.ird.yahoo.com with NNFMP; 08 Jun 2012 20:01:27 -0000 Received: from [217.146.189.65] by tm15.bullet.mail.ird.yahoo.com with NNFMP; 08 Jun 2012 20:01:27 -0000 Received: from [127.0.0.1] by smtp145.mail.ird.yahoo.com with NNFMP; 08 Jun 2012 20:01:27 -0000 X-Yahoo-Newman-Id: 584914.51627.bm@smtp145.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: n0ZMvPMVM1mDflQRQL.UTgzHpjkJlHOGgDdzNTSziikeXQD 8gANl_ojOUNBo.rD0X2lj0eTwchqEJPolMhxWP8ktfYY1WNSxw3nz3tZF39o TnLch_.pUYgtGiJ0yQSZEu96h0EaVQiViqayr2KTeZIh6NjP4hOQFobMBorM tZDcEo3eIG0Tg4HwdMMpN64Ksgo9nv2W101QxvUGkg2zhEYwfrI_ltS2CsV9 SgeN8RZrt4ng25Dv6KZ3DDmlHWEvw.Y_jv4S_fG2IBfKye62rfkUlJQYwtWa cwkt9TOL_M4zACRywl2uIPmUw_Z7NU0EyHO9CRrKXvw3V_JY1piWPU6NUGVf SF4yjl6ILoyBsF4.t6wdGH4KjPZL_SDytVEc.30gR8tj0W4WM88wMVFfIQ4Z YqEpC2w3iL151875ilLQE X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. Received: from [192.168.119.11] (se@81.173.145.81 with plain) by smtp145.mail.ird.yahoo.com with SMTP; 08 Jun 2012 13:01:27 -0700 PDT Message-ID: <4FD25A16.9060509@freebsd.org> Date: Fri, 08 Jun 2012 22:01:26 +0200 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120604 Thunderbird/13.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <4FD1B365.2010209@yandex.ru> In-Reply-To: <4FD1B365.2010209@yandex.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: lock order reversal in sys/kern/vfs_mount.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2012 20:01:29 -0000 Am 08.06.2012 10:10, schrieb Ruslan Mahmatkhanov: > Good day, > > After updating to yesterdays -current, I got this on boot: > > lock order reversal: > 1st 0xfffffe0007b04c38 ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1254 > 2nd 0xfffffe0007ed9478 devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2158 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2a > kdb_backtrace() at kdb_backtrace+0x37 > _witness_debugger() at _witness_debugger+0x2c > witness_checkorder() at witness_checkorder+0x853 > __lockmgr_args() at __lockmgr_args+0x113a > vop_stdlock() at vop_stdlock+0x39 > VOP_LOCK1_APV() at VOP_LOCK1_APV+0xbf > _vn_lock() at _vn_lock+0x47 > vget() at vget+0x7b > devfs_allocv() at devfs_allocv+0x13f > devfs_root() at devfs_root+0x4d > dounmount() at dounmount+0x45c > vfs_unmountall() at vfs_unmountall+0x4c > kern_reboot() at kern_reboot+0x84b > sys_reboot() at sys_reboot+0x68 > amd64_syscall() at amd64_syscall+0x2e0 > Xfast_syscall() at Xfast_syscall+0xf7 > --- syscall (55, FreeBSD ELF64, sys_reboot), rip = 0x40ebbc, rsp = > 0x7fffffffd6c8, rbp = 0x65 --- > > Reverting to old kernel (that was built about a week ago) helped to > avoid this. Any thoughts? I have been getting those for a long time in -CURRENT, but with ZFS instead of UFS, and during system shutdown, not startup. And this LOR seems to cause the system to lock-up on shutdown with relatively high probability (I often have to remove power to halt the system, Since the ACPI power-off is not issued because of the LOR). My system is only rebooted from the local console and thus the LOR is not that much of a problem, and I did not bother to further look into the cause. But in case of remote system that is rebooted via SSH, the LOR could be quite a nuisance ... Regards, STefan