From owner-freebsd-fs@freebsd.org Wed Dec 12 18:40:38 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E1C71318BE5 for ; Wed, 12 Dec 2018 18:40:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2A0CB725AD for ; Wed, 12 Dec 2018 18:40:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E10F71318BE3; Wed, 12 Dec 2018 18:40:37 +0000 (UTC) Delivered-To: fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A34591318BE2 for ; Wed, 12 Dec 2018 18:40:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3DEA6725A4 for ; Wed, 12 Dec 2018 18:40:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 785D58C15 for ; Wed, 12 Dec 2018 18:40:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wBCIeaV4095580 for ; Wed, 12 Dec 2018 18:40:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wBCIeauv095579 for fs@FreeBSD.org; Wed, 12 Dec 2018 18:40:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 229958] ctld / zfs deadlock with 'zfs rename ...' Date: Wed, 12 Dec 2018 18:40:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: daveb@spectralogic.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2018 18:40:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229958 --- Comment #9 from Dave Baukus --- (In reply to Andriy Gapon from comment #7) I believe this one involves a rename, but I no longer have the crash dump to verify: spa_namespace_lock holder waiting for txg 185: ---------------------------------------------- Thread 1740 (Thread 100162): (struct thread *)0xfffff80003d12000, tid 100162 geom :: (struct proc *)0xfffff80003d98a50, pid 13 STACK: #0 sched_switch (td=3D0xfffff80003d12000, newtd=3D0xfffff80003ae4580, flags=3D) at sys/kern/sched_ule.c:2112 #1 0xffffffff80513d6f in mi_switch (flags=3D260, newtd=3D0x0) at sys/kern/kern_synch.c:439 #2 0xffffffff8055e04d in sleepq_switch (wchan=3D0xfffff80c13b6c298, pri=3D= 0) at sys/kern/subr_sleepqueue.c:613 #3 0xffffffff8055def3 in sleepq_wait (wchan=3D0xfffff80c13b6c298, pri=3D0)= at sys/kern/subr_sleepqueue.c:692 #4 0xffffffff804a4b73 in _cv_wait (cvp=3D0xfffff80c13b6c298, lock=3D) at sys/kern/kern_condvar.c:146 #5 0xffffffff8165f7ec in txg_wait_synced (dp=3D0xfffff80c13b6c000, txg=3D1= 85) at fs/zfs/txg.c:659 #6 0xffffffff8169cd44 in zil_close (zilog=3D0xfffff80b2f00e400) at fs/zfs/zil.c:2975 #7 0xffffffff816e06c5 in zvol_last_close (zv=3D0xfffff8000b3fc000) at fs/zfs/zvol.c:893 #8 0xffffffff816dfcc4 in zvol_close (flag=3D0, pp=3D, count=3D) at fs/zfs/zvol.c:1313 #9 zvol_geom_access (pp=3D0xfffff80df6772b00, acr=3D, acw=3D, ace=3D) at fs/zfs/zvol.c:2739 #10 0xffffffff804809f9 in g_access (cp=3D0xfffff80657520b00, dcr=3D, dcw=3D0, dce=3D0) at sys/geom/geom_subr.c:977 #11 0xffffffff80486ac6 in g_part_taste (mp=3D, pp=3D0xfffff80df6772b00, flags=3D) at sys/geom/part/g_part.c= :2046 #12 0xffffffff8048158a in g_new_provider_event (arg=3D0xfffff80df6772b00, flag=3D) at sys/geom/geom_subr.c:557 #13 0xffffffff8047c3b4 in one_event () at sys/geom/geom_event.c:268 #14 g_run_events () at sys/geom/geom_event.c:291 #15 0xffffffff804ca144 in fork_exit (callout=3D0xffffffff8047e720 , arg=3D0x0, frame=3D0xfffffe010e5a0ac0) at sys/kern/kern_fork.c:1057 #16 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The spa sync thread wants the spa_namespace_lock and is blocked by the "geom one_event" thread: ----------------------------------------------------------------------- Thread 1769 (Thread 104558): (struct thread *)0xfffff80779d9b000, tid 104558 zfskern :: (struct proc *)0xfffff80005973528, pid 15 STACK: #0 sched_switch (td=3D0xfffff80779d9b000, newtd=3D0xfffff80003ae5580, flags=3D) at sys/kern/sched_ule.c:2112 #1 0xffffffff80513d6f in mi_switch (flags=3D260, newtd=3D0x0) at sys/kern/kern_synch.c:439 #2 0xffffffff8055e04d in sleepq_switch (wchan=3D0xffffffff817aee98 , pri=3D0) at sys/kern/subr_sleepqueue.c:613 #3 0xffffffff8055def3 in sleepq_wait (wchan=3D0xffffffff817aee98 , pri=3D0) at sys/kern/subr_sleepqueue.c:692 #4 0xffffffff80511af6 in _sx_xlock_hard (sx=3D0xffffffff817aee98 , x=3D, opts=3D, file=3D<= optimized out>, line=3D) at sys/kern/kern_sx.c:857 #5 0xffffffff805115e1 in _sx_xlock (sx=3D0xffffffff817aee98 , opts=3D0, file=3D0xffffffff81703a89 "fs/zfs/dsl_datas= et.c", line=3D3086) at sys/kern/kern_sx.c:328 #6 0xffffffff81619cc4 in dsl_dataset_promote_sync (arg=3D0xfffffe01e0c3e3d= 0, tx=3D0xfffff80ccfc86500) at fs/zfs/dsl_dataset.c:3086 #7 0xffffffff816232d9 in dsl_sync_task_sync (dst=3D0xfffffe01e0c3e308, tx=3D0xfffff80ccfc86500) at fs/zfs/dsl_synctask.c:234 #8 0xffffffff816218db in dsl_pool_sync (dp=3D0xfffff80c13b6c000, txg=3D) at fs/zfs/dsl_pool.c:819 #9 0xffffffff8164ffe3 in spa_sync (spa=3D, txg=3D) at fs/zfs/spa.c:8124 #10 0xffffffff8165f206 in txg_sync_thread (arg=3D0xfffff80c13b6c000) at fs/zfs/txg.c:543 #11 0xffffffff804ca144 in fork_exit (callout=3D0xffffffff8165ef20 , arg=3D0xfffff80c13b6c000, frame=3D0xfffffe025a97aac0) at sys/kern/kern_fork.c:1057 Pending on lock: SX_LOCK: spa_namespace_lock, (struct sx *)0xffffffff817aee98 $5 =3D { lock_object =3D { lo_name =3D 0xffffffff81721d6a, lo_flags =3D 0x22710000, lo_data =3D 0x0, lo_witness =3D 0x0 }, sx_lock =3D 0xfffff80003d12004 } LOCK HOLDER: (struct thread *)0xfffff80003d12000, tid 100162 geom :: (struct proc *)0xfffff80003d98a50, pid 13 --=20 You are receiving this mail because: You are the assignee for the bug.=