From nobody Tue Oct 24 13:38:20 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 4SFCnB364Rz4y3rn; Tue, 24 Oct 2023 13:38:22 +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 4SFCn83y7kz4Z1N; Tue, 24 Oct 2023 13:38:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698154700; 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=Jfocy6EJJoSAWja2a5VlwkXc6dv/MZOKhCD3/8PvHX8=; b=ClP6XPkFsjMxN5ReyNBTlu2UwkgwY5dPzh0RcEPC3AhFkDTrLUQ1AzPvdUZIGyxwa2/nJp kSoJ3k7mcunAQ9poe3o3wQb5BN3iX7FrcGZyU7SCk9nFkt1NhgNjshfTLOQZj0HssHXmzE JbfFnYl2g8A0uh+hkmWv/PItrmVvAYaoq61MW6uu9g6bsBK5l3otO8W8dLiIM8TdsamXh7 cois1zpP6aZn5kqORxdsQyCfVd364ZGnu0ZsVvS2sP6Zazmxe5UacZwSLi0dq2SUi5wy0s 9SJ5JE424PMI3+pXRotVeS0nlsbROpLOKnXdvUi22B3Isu0T7WYI8fAfdTaDqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698154700; a=rsa-sha256; cv=none; b=ejoLhUPvzI0Xntc38JNtoZTYwjy2NKfYiSAYU6BS/WH94nz7hU19X3eKXbLhfqyGvFUoqp z8vziBIugb9TdPi7I0eVcxhMN72IhGTH9EuWqH5CCOMJapDpCvx2Gyceez4xauQAU2TrE8 lfN+yFP9f/SwRZLfqn90SbTuFUeK3zd+qQfRhWcqBi/nXUyBnjnDSfRp9b4yVOHhaz/RHO bbEIiQTjsN4NCl1AzT6dnwJL3/Zh5TCFxaUgEcZLw4E8IutCqCSnc4lefSAQxZPqKze+bz 6CL+xU29a/lbgVNG3cxBQNcttv2hJ3vJuvYOynIQ/wKgtsNtVgqOOpgx5gLMQA== 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=1698154700; 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=Jfocy6EJJoSAWja2a5VlwkXc6dv/MZOKhCD3/8PvHX8=; b=tnEHVLSSldkn5Cb82pPHtTB3ADax5atAHURdN8b8eC+dTEPChgbB0i6UhykDO84uJnoUAV QhFGIl7P2HqZX0jDqyXLoYp9Pybr8XlBxDEDtwT9l4XZhVraEc0UAMffw3H1wzL+yPIt5E KvH/XIaWs2/QUxgNnCm2T1EVbcRKD/XogHlUBMxwK23YwqTGVnZgvCOIKL8gQ49AQN1QyU NA3QGwVVSJs5MKjrqSu9BxMvZ6IdMiDFDM1tw2X3Gs7DbfffiH0hcaDBO7pKxt1beL5ILl Qq0ovCiatwSqN0oJjAZ15o/dMg0xb5elnuWZMmNx65ZrumSSwwE5YhQIxTr7uA== 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 4SFCn83451z97D; Tue, 24 Oct 2023 13:38:20 +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 39ODcKCr089171; Tue, 24 Oct 2023 13:38:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39ODcK2T089168; Tue, 24 Oct 2023 13:38:20 GMT (envelope-from git) Date: Tue, 24 Oct 2023 13:38:20 GMT Message-Id: <202310241338.39ODcK2T089168@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 0da34087c41c - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 0da34087c41cd3a64a5c07edfe373395bc29857f Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0da34087c41cd3a64a5c07edfe373395bc29857f commit 0da34087c41cd3a64a5c07edfe373395bc29857f Author: Mark Johnston AuthorDate: 2023-10-17 14:25:38 +0000 Commit: Mark Johnston CommitDate: 2023-10-24 13:17:59 +0000 geom_linux_lvm: Avoid removing from vg_list before inserting PR: 266693 Reported by: Robert Morris MFC after: 1 week (cherry picked from commit 56279238b03a0ccef245b22fff7679fe35cffccc) --- 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);