From nobody Mon Aug 28 13:30:11 2023 X-Original-To: fs@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 4RZBJ34y75z4rYT3 for ; Mon, 28 Aug 2023 13:30:11 +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 4RZBJ33VM0z4Jtc for ; Mon, 28 Aug 2023 13:30:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693229411; a=rsa-sha256; cv=none; b=gcqzK9lp8zWt7pJlH/1EPfMrtK7Nd82sQan9rebTR8acOTVbOQt6CfGuA0KSXh7T9Vf0b3 tLveVmy7r4LBMh/xRD15ssnjimXLWz3sf+q2xGtNQdAJfn1+Tlw8xObmT4zdzOBLaYWtkW Md5cETA9RKUDQ9dEZVTITChEwgK7VoA91CiElrnwy9XdVoXJduTW9jYz13nZ5vPI5R6qLl HPbiB4bGpzZxMc9+mPBp8y1gh2o9m5VotSIS3un4blPbiP59y/qIaLnteeJ+ZhlPD6NOr8 urScYCWwvoj3xSv9Va9moM9egtX7bL1NRBZlvrM3jx6BbQvT991yAULVYlDB0Q== 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=1693229411; 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=pFPcHrHOWWhwWaVrnwVdJ8/euscJCBXid4+0OB59Hf97HxPkM5D8n2/JlN0Mzs3CUD4/X/ jJljW7zlbKcGPN4Th6Ejuq6pjCk82+Lj21TgNg5FZqV59nFeS7LnjMytVx3U1z2R+dk+dU W6dShwwEB63Dr9/97KyHPEjist51ptfdWtMGCpv5JVV4H3afzLfR/GQ3KJ+Hf7MH1hG9Nx XiTsi94h60p/iBjvdp3iE2zU5KFoi5aHkGLckbTePL6b9bC56v94yQDFOvHbmUrFYxzY0h fe6N42s1oXxfKbVthzKOJobs2cUxqd46oXs7H9+n+3jbRqMKcbdumUxeFTPDtQ== 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 4RZBJ32TMMz1933 for ; Mon, 28 Aug 2023 13:30:11 +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 37SDUBnd044682 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 37SDUBxX044680 for fs@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: fs@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: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@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.=