From nobody Wed Jun 05 20:04:02 2024 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 4VvdhM14Vjz5M3KG; Wed, 05 Jun 2024 20:04:03 +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 4VvdhL59Rbz4jKj; Wed, 5 Jun 2024 20:04:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717617842; 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=HJAFgsvxrSHwNkZL9Y0egHHd3wSsFr5GorsuzGIPNlY=; b=ueHzZQt9ro3Vev9UZcDpLFivPfsCKqeraGSNdI2ODg1Pk1F/QPuWJu6mtN33qmiEWcLUYz AAKmlZ90oEcf/EKVAduBa5+F9+jBng01YeiW7d8HtqzEqcMcLrQHAxfLO81w5ApebDrvOl OVdbDBKiyPUajjzD0f4pzEfeSImu7hFymSOeK4jL4DO9BeViZ7pme4QIwi1qpsoUI7+uW3 iHY5S4zkWfEqYUITZrpASd7FLT65uig3yeKqaSamozrC3M+HxUxYPeT8T2LPQFMg54Sq+I x2497k64BIBFX0OByna9dLKzzWSIj9MnkfLauvJGMzccwdQKtZyGjI/XTzgM5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717617842; a=rsa-sha256; cv=none; b=P0Ju5Ebo9HQtlvF8ufsxQLAowIWFH7pPnYMq6JjaJYV+JzAKMOpqjvSM/WMxMg6UaMOBuQ c0kwI5F+6QbADthPtMUmDhkT5nuPI6TMH2bEreFj5YEeM/bAZXbLsRh78mvXMnEjh3afrL 4lkMN+Z3BvZHCFH+C0NmaFpiHlOJsx98V3sQw5DWi9hz9+QQgJw8BvVcKoUR959Qp4+45w CVVFSnZVDUG0l+w9jC+Sru9b4sJcHG8lzj5uuPeZUg6KG9bIFFE0t7DpINKQ4Vet9b9mpA D1gXgyOd0LXkNx85vU4hBIrL0h2pTc/JX7dsCUNkwowcwfu3hTAoDikUjt0yMw== 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=1717617842; 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=HJAFgsvxrSHwNkZL9Y0egHHd3wSsFr5GorsuzGIPNlY=; b=mupCYKNr+BqWF5OsUXjwWuWoAV+LLNLf/VosdYL+IMg7TpfE4JiY5zBCerM1NC+UB/8hFv eI/ej6F45ox8Ra/+D0hMrqTl9cVWUNDSB+ipkUdd4/wVMdKwiNr/sHTujGcT5Ng0CLwAaJ cUO2OXeIqHbkP3yXb5F1GMI3RiSRYiIoQWk/1qkxAOYgUFhL99Y3YB3Jr866jwIqYiXNvb RR+T2nd3DTl9Tx0HB9i/OY48TSgn/XUGJ7q9goXApcp66MX8d/9TVa+0kERei8OYPjFPFb wwRgcdPAuGOSBsxzV8Gk5+JFVw+lbKyljknO7Iubpzfpq54RnAhOSV3qg9enwQ== 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 4VvdhL4nCTzGHL; Wed, 5 Jun 2024 20:04:02 +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 455K42T6011778; Wed, 5 Jun 2024 20:04:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 455K420i011775; Wed, 5 Jun 2024 20:04:02 GMT (envelope-from git) Date: Wed, 5 Jun 2024 20:04:02 GMT Message-Id: <202406052004.455K420i011775@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: e140f85dc194 - main - nvmf: Rescan namespaces after reconnecting 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e140f85dc1941ecdfb35f49f0d7f97b24e2a54ea Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e140f85dc1941ecdfb35f49f0d7f97b24e2a54ea commit e140f85dc1941ecdfb35f49f0d7f97b24e2a54ea Author: John Baldwin AuthorDate: 2024-06-05 19:53:08 +0000 Commit: John Baldwin CommitDate: 2024-06-05 19:53:08 +0000 nvmf: Rescan namespaces after reconnecting While a host was disconnected from a remote controller, namespaces might have been added, removed, or altered properties. Rescan the namespaces after reconnecting to detect any such changes. Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D45461 --- sys/dev/nvmf/host/nvmf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/nvmf/host/nvmf.c b/sys/dev/nvmf/host/nvmf.c index 1e7fce42b2a3..9684170c1de9 100644 --- a/sys/dev/nvmf/host/nvmf.c +++ b/sys/dev/nvmf/host/nvmf.c @@ -685,6 +685,8 @@ nvmf_reconnect_host(struct nvmf_softc *sc, struct nvmf_handoff_host *hh) nvmf_reconnect_ns(sc->ns[i]); } nvmf_reconnect_sim(sc); + + nvmf_rescan_all_ns(sc); out: sx_xunlock(&sc->connection_lock); nvmf_free_ivars(&ivars);