From nobody Tue Oct 17 15:55:30 2023 X-Original-To: dev-commits-src-all@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 4S8z8f5kWcz4xgP7; Tue, 17 Oct 2023 15:55:30 +0000 (UTC) (envelope-from git@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 4S8z8f54hbz4F1Q; Tue, 17 Oct 2023 15:55:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697558130; 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; bh=NCfs80IW3BBxFPS6ON49NfXtm1IuJMrTP8Vxi7QhDXM=; b=h6nZevO1HqhIv5AsLakruZzvTlBAWcu+5arm6O4n3EVDjev4EDFo5SFEbCharDw6Ubb30/ NfJFzxl0kzaaNhnZZSk+I523M6yJcx6xjyzk+qY0cMVcfr8Cc32DPnFoSg/96FuMGfD4rB VlhjDxKANf/2cuX9y1tLpXcF5vUAjIzmw72LxrqpVaiptVJg8W5+CYMZtWXxPEBUmQno7+ RAwBA6eHckCA71E2gIVgBdAotq5NWUmHXanew0N9CB5cTGAvGDrvXWhr3c3/zatLQ544F6 ilKrZ7lQFWWp1/N27FzXupkeBrJ0/T83SFWqVLNkR+m5Am9GfHPXrxAvP7To5Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697558130; a=rsa-sha256; cv=none; b=wzijS73axUYB/C8SHH49/vxfZwKyiGINpuU2y8dt4AfscsoICvSLhSHYUrkyK7iaHFowAc kVY5kjn13FQoF4+T0is8TxLH75b8tiVSKf/oYMXgoJbd/nZJ2UZz7bEmbdWLMEDUih3C4D vFk6Y5nCymKRWuELePaohjB63HH9Jbt46hFsAIomSE3ax3UL2yGZt4Jrgaju7U2nmUKzwa ufL92J51BvlykmL9rf16Udr9d0Jh+vYfFsgEbW7A9i1FeBf0D9HctYK6L0H6ibjq34Nr/9 TJb4ktM7wBoJYDEK4jNEeVdM4FGjG6ELofQAYFifOa0X4A2kXwrUTQVq3k+ijQ== 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=1697558130; 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; bh=NCfs80IW3BBxFPS6ON49NfXtm1IuJMrTP8Vxi7QhDXM=; b=R79l7oUpN/eazmFSKRxuiq/u0fdr+HMHBZ/rrWPEmQ2bsSMokLS1/qfp2spN9Zo3hq7f5X IdiGgOfYq0rHycsG+pJxGJCKLBPxz9Iljnzp1xzZ918BJ0yvgb42N5ozpDEqn7R40T7LUG m72aJmDAAjbcXtKtkuqHNu0JfqY8Lm/IGxUs5+Oj6jsvesx7gm8LjzsXykGaXg4frN0PHI hsfcZblRHWBAWQEEcASsxRyiAfaOuzIlRCAHZeNq3+Y1lXuZ7HD7iucrjs2Kx1E1+dqduE c5M+k6g73k5gaN5PLs00GMSJscWUVXSngVdN9QTobj4FE6shjyTb4zucOwabdw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4S8z8f47YjzVds; Tue, 17 Oct 2023 15:55:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39HFtU1A028973; Tue, 17 Oct 2023 15:55:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39HFtU8T028970; Tue, 17 Oct 2023 15:55:30 GMT (envelope-from git) Date: Tue, 17 Oct 2023 15:55:30 GMT Message-Id: <202310171555.39HFtU8T028970@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 56279238b03a - main - geom_linux_lvm: Avoid removing from vg_list before inserting List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56279238b03a0ccef245b22fff7679fe35cffccc Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=56279238b03a0ccef245b22fff7679fe35cffccc commit 56279238b03a0ccef245b22fff7679fe35cffccc Author: Mark Johnston AuthorDate: 2023-10-17 14:25:38 +0000 Commit: Mark Johnston CommitDate: 2023-10-17 15:19:05 +0000 geom_linux_lvm: Avoid removing from vg_list before inserting PR: 266693 Reported by: Robert Morris MFC after: 1 week --- sys/geom/linux_lvm/g_linux_lvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/geom/linux_lvm/g_linux_lvm.c b/sys/geom/linux_lvm/g_linux_lvm.c index dddc3ae9184e..c63318fed729 100644 --- a/sys/geom/linux_lvm/g_linux_lvm.c +++ b/sys/geom/linux_lvm/g_linux_lvm.c @@ -512,7 +512,6 @@ g_llvm_free_vg(struct g_llvm_vg *vg) LIST_REMOVE(lv, lv_next); free(lv, M_GLLVM); } - LIST_REMOVE(vg, vg_next); free(vg, M_GLLVM); } @@ -596,7 +595,8 @@ g_llvm_destroy(struct g_llvm_vg *vg, int force) } } - g_llvm_free_vg(gp->softc); + LIST_REMOVE(vg, vg_next); + g_llvm_free_vg(vg); gp->softc = NULL; g_wither_geom(gp, ENXIO); return (0);