From nobody Tue Oct 24 13:38:04 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 4SFCmr3Gg0z4y3dq; Tue, 24 Oct 2023 13:38:04 +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 4SFCmr2nFlz4Y26; Tue, 24 Oct 2023 13:38:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698154684; 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=vnaL3hRTw19giz3jR3UdKjLUI+y0loVTCi6iWnIKdV8=; b=fztSW6FKz85Yof7Z0/XDOEmtVf3Wlqagl3YQlk/hIYCv4IbHD0HL9kUrFWTSzIkqJlsdby sWh3Cs5JFqFJ6mvxkcRDiP/mm7fJVxg0+rLnu0greP6Hne3I2FSMbIbY8lkDi33TL7F5R+ gA6HfeRBo5xcTfGBTHSTGRpmp+Xtuu1Z2CCyAUC5XGE5Ep2z4cgLEfgoXzWtxZ/p2oBuJo xtBQR02X22VQmCcdeHrZW2Bt2FXjk/w6IksTIppSQJSoGGOBMxgI9s/InFYeE1gu4B3yeN xHrrTwAqALog+aSythxCFYZmcSCo8vj2xaNmxExzfjx19Nd9Ya9/K8A2sm8OXw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698154684; a=rsa-sha256; cv=none; b=YH9A5vp60nDzan+428eJomwq71/k0/0+A2O5v6Kr5X8eygf73xTUVHnRrwJ1Z1wblsAGUI A71IPbxOD80NI3n59uw7VHbZa5hvY1Phx0iCefHaTvx7xMnBIGc40dhlhGCnfcfkhtlFs7 +QZGTTtm7J79UsPPFJ7a8xPce9fT9HZuU4CpOnMI23vfD8GXOIfaV25Qy0msQNp4NsbiX9 T97lf4f+qAGL59ouv/L+Y595qUk9yQaoJ+eaFrRSqCslvVjCwpwDEQa1BAF0HjUJPgz3D/ SUnD3JXqX7Opd9fq2WkG/tAQxZKMMrgSgJpoW0fG0n5LI0e8LiYFBOedUjNukg== 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=1698154684; 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=vnaL3hRTw19giz3jR3UdKjLUI+y0loVTCi6iWnIKdV8=; b=uwWt0UGTNFk7By42DRd7KtTGnFZfXQNvCKp2wVkP0AL/RiIdhQvrR4rqQWq6fC+JfJSRsC WWxcWZXK8XDv+jh3A7M/ofLWtGkHYUXZ6BjpX4zF5tWWAegGwOQQdsBdJ81pMmlqSSxNF2 l+jVCwsOWoujqKtQJy598/5W1gMBCfYrRuciIBRlA3Tg7WcCAfHX3/h1oe2v9mJq+VzcJP wC5ceXCvxs5L9j6Bo9SV4h9Lx+WHWJjlKrG2rOkejwEQghi84fsaSuam0gu6rFT8Lt2vMw gtxVItKtLIPOLfsl+BuP98wPXqtK9bKj3lAqFwAoATh+DeLXND9ZAnRjKXzBTg== 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 4SFCmr1qkTz9Sq; Tue, 24 Oct 2023 13:38:04 +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 39ODc4EN088634; Tue, 24 Oct 2023 13:38:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39ODc4Wm088631; Tue, 24 Oct 2023 13:38:04 GMT (envelope-from git) Date: Tue, 24 Oct 2023 13:38:04 GMT Message-Id: <202310241338.39ODc4Wm088631@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: 2d7b5953dd90 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 2d7b5953dd90430c065014b748ac0e6217bff9d7 Auto-Submitted: auto-generated The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2d7b5953dd90430c065014b748ac0e6217bff9d7 commit 2d7b5953dd90430c065014b748ac0e6217bff9d7 Author: Mark Johnston AuthorDate: 2023-10-17 14:25:38 +0000 Commit: Mark Johnston CommitDate: 2023-10-24 13:18:07 +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);