From owner-freebsd-fs@FreeBSD.ORG Sat May 26 10:01:32 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1CC516A400 for ; Sat, 26 May 2007 10:01:32 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 3400713C44B for ; Sat, 26 May 2007 10:01:32 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so495975uge for ; Sat, 26 May 2007 03:01:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=oo4BfX9n+q6o2Netk7ahDsfWpIUjLs5t98pUekgxXGvhb5fR7Sjc3N3rd3PX0o/ZCmrMUtxLdDymeOQ5AM4Chcun9xthh9DFV8x9tXAwmYIxJTiocgv8bBDJJIbiZ5wBmXR9xbvssRIi2nZ1PPHM5cViE/g8mY258/NFpG2HArc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=B8bIOKZvgnbYHBov5UEt7pi/9StQdIfO4cW9+0qJRYWxFGlEldcKZRZ1lNxrTyqIePjV7NbQaamChieKHve4rrPkzbY6MsEQnNmSPRIKAwgS5nGWq/AsC6Vxz4HYa1wmexpS3osZEs0IoyXiIDjOcXIfhMja0hmEsYo+F15i0R0= Received: by 10.78.166.7 with SMTP id o7mr1146176hue.1180172183765; Sat, 26 May 2007 02:36:23 -0700 (PDT) Received: by 10.78.190.11 with HTTP; Sat, 26 May 2007 02:36:23 -0700 (PDT) Message-ID: <70e8236f0705260236x527b0484m96bc77ae51d8b287@mail.gmail.com> Date: Sat, 26 May 2007 10:36:23 +0100 From: "Joao Barros" To: freebsd-current , freebsd-fs@freebsd.org, "Pawel Jakub Dawidek" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: ZFS: LOR in dbuf.c X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 May 2007 10:01:32 -0000 Hi Pawel, I upgraded my sources last night (just before your 2 commits) and now I get this constant LOR every 5 seconds: lock order reversal: 1st 0xc7b90c20 zfs:&dr->dt.di.dr_mtx (zfs:&dr->dt.di.dr_mtx) @ /usr/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/fs/zfs/dbuf.c:1866 2nd 0xc48e17e4 zfs:&db->db_mtx (zfs:&db->db_mtx) @ /usr/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/fs/zfs/dbuf.c:1888 KDB: stack backtrace: db_trace_self_wrapper(c0a1ae29,e67a45a0,c076d9ee,c0a1d252,c48e17e4,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0a1d252,c48e17e4,c0d1b6f4,c0d1b6f4,c0d1b5d1,...) at kdb_backtrace+0x29 witness_checkorder(c48e17e4,9,c0d1b5d1,760,c48e17a8,...) at witness_checkorder+0x6de _sx_xlock(c48e17e4,c0d1b5d1,760,c1474788,1,...) at _sx_xlock+0x7a dbuf_sync_list(c7b90c38,c894de80,74a,2,c48e0910,...) at dbuf_sync_list+0x16f dbuf_sync_list(c48e09d0,c894de80,257,3,3,...) at dbuf_sync_list+0x107 dnode_sync(c48e0910,c894de80,7,3,3,...) at dnode_sync+0x1cd dmu_objset_sync(c4441000,c47a4678,c894de80,0,c4441698,...) at dmu_objset_sync+0x130 dsl_pool_sync(c4441600,49482,0,0,0,...) at dsl_pool_sync+0x190 spa_sync(c403d000,49482,0,c4441740,c444171c,...) at spa_sync+0x3f8 txg_sync_thread(c4441600,e67a4d38,c0a14eb6,324,c44b3900,...) at txg_sync_thread+0x15a fork_exit(c0ce46e0,c4441600,e67a4d38) at fork_exit+0xf1 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xe67a4d70, ebp = 0 --- Let me know if you need more info. -- Joao Barros