From nobody Mon Aug 28 13:30:11 2023 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RZBJ43gbJz4rYT6 for ; Mon, 28 Aug 2023 13:30:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZBJ424j7z4Jtw for ; Mon, 28 Aug 2023 13:30:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693229412; a=rsa-sha256; cv=none; b=lo3dssFBIjyMVSU8kwoPlIBlnS14o7yYlVu1ilnzw/tZWeDMwUyf6Kral0ZVWWvhTxn95B 18etXXPzVsO1sCujMVV8138R0zsi5faCgaxVPuUC1lKfxZFODNEYUGzq9QbLAbil2BsfVi uY6rayY06++eMeRbTL5RBklHTvu40bFWeeBoIG2UkveL990Gay0m1oh/UGYujVQu+ac3gi 2VrGYGZ8rzL84XmMsruq0JrYv+5EIq5WDHdltAGmLhcgFHeGs1kAU0XMvVNSOchkNGt2oQ /j0vkfkjJ+v0hsug7PasIjWIx8hG5O8nUTbd1q5itUqim/kfZZgvCJFFgpdHhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693229412; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9oxjkUrIOZS/l7w40ul1IN8ia4DBjGae1HNfkP663Is=; b=LDYP/5JKYLJzw3ovDUZc9QKAN7LbiE9lXJ2fBs2a90DKKlKEPJP/e5kYkc+chI0Kw2MTnd OM7IJFOnP/vYlX4aZTBppSIxgBbk2E3oes6ZsCEa3FmhXnpUllMb6BebA1cCWMpedLqANI 6uAtqIGanWf+vyKCYGPCz6I7006PvWakOA5GM6pRCL9skfVUUQZlSRvZ3saoJIhkMX5mf6 ELASwLBBUCis+ilmvTV+iBBCIYyDBG2+AHlAtdlwy4KynYbDkpQoOZ1Rk82/AOokg5vUkm PMbS4khkbcYc93UfV5rWH1zP5awP+uZqbxQZN15KFa4EE9KehkGUB1rcZnPW1g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RZBJ408b8z19Gl for ; Mon, 28 Aug 2023 13:30:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 37SDUBjH044716 for ; Mon, 28 Aug 2023 13:30:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37SDUBEX044715 for usb@FreeBSD.org; Mon, 28 Aug 2023 13:30:11 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: usb@FreeBSD.org Subject: [Bug 167685] ZFS on USB drive prevents shutdown / reboot Date: Mon, 28 Aug 2023 13:30:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jfc@mit.edu X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: grahamperrin@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 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D167685 --- Comment #15 from John F. Carr --- If I run "zpool export sabrent" on the pool described in my previous comment the command takes about 7 seconds to complete. ^T reports load: 7.17 cmd: zpool 66858 [tx->tx_sync_done_cv] 4.07r 0.00u 2.54s 20% 80= 08k mi_switch+0x152 sleepq_switch+0x104 _cv_wait+0x14a txg_wait_synced_impl+0xeb txg_wait_synced+0xb zil_close+0x128 zfsvfs_teardown+0xb1 zfs_umount+0x129 dounmount+0x396 kern_unmount+0x312 amd64_syscall+0x13c fast_syscall_common+= 0xf8=20 load: 6.76 cmd: zpool 66858 [running] 7.24r 0.00u 3.14s 20% 8024k uma_zfree_arg+0xd6 abd_free_chunks+0x44 abd_free+0x45 arc_hdr_free_abd+0x144 arc_evict_state+0xaca arc_flush+0x8c dsl_pool_close+0xe3 spa_unload+0x349 spa_export_common+0x2c8 zfsdev_ioctl_common+0x5ce zfsdev_ioctl+0x12a devfs_ioctl+0xd2 vn_ioctl+0x136 devfs_ioctl_f+0x1e kern_ioctl+0x286 sys_ioctl+0x140 amd64_syscall+0x13c fast_syscall_common+0xf8=20 I see after filesystems are unmounted there is still some ARC cleanup to be done. The shutdown path has a call to vfs_unmountall in bufshutdown. Does= it have a call out to ZFS to quiesce pools? The hang is reproducible so I am able to test a fix if anybody has one. --=20 You are receiving this mail because: You are on the CC list for the bug.=