From nobody Fri Jan 17 07:38:54 2025 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 4YZBSG6JTbz5kbqV; Fri, 17 Jan 2025 07:38:54 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YZBSG5gw8z427M; Fri, 17 Jan 2025 07:38:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737099534; 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=AOFpTWgFjNuEpze7kdnodxyd3ypvU48wV9OyTnhpqP0=; b=Y0HF4kBAQktm6DN51edZmk+7vl87psygTgsPY3St+T8Ru/7g695TzTyrj9eaZCru393BUw e3lqCwanOFlTc0g3wn436lE5XjXSz6Ys8iOB8u4omjcQtGqxNK+AKBhUs/LROC4p39Ol+x nVuXwfc5YoIe8MpmtqoENIASMC+AiEHTNP0LisVEZVXosa4q/yXMfwIkeuE1/p7jaN4EoI 3kEbjnX5Vneuhib2T4vUMFFPdkrdVYfbPfaOiHbuEwjQrMOZY00fYJTznSOjQp5usje5ub E44cjjOQAo9Y8mNa1lrnVj8Hqvp0c2JoJqZnV7gX4HB3yN8NUhg8k4yQsaw7tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737099534; 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=AOFpTWgFjNuEpze7kdnodxyd3ypvU48wV9OyTnhpqP0=; b=t3CnQ+xw+wCOiRgvUVs6poMyiATIFhK/YLy3dZGQoyQDhl3iB1IX0mj0f910+krYB21has FupQ8+9S0JI53ee/ZlN2AjxTC+j2xb8hto9Zbb42BsWNhePhGcTldBfQIfSRC/HI8MSGLq lQ90kLt80HlnuwXjRIRDYzrmV0Sk1Yy04rbJ4PeItjo0hXQROMig+ErCxqKEofkbn/vn7C vHflmotInSufSNV1uiUrZc4nVbmar6KZxf2+ZRYnph9XwgcNV8I/Fdw6eOfmkcXBe0mE9X XPqX0N9DNC6XTKS9Mr6xCeFtv1bsSoPyIb9uPJtFNlIF5lTzr17t52OqWmxb4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737099534; a=rsa-sha256; cv=none; b=treBhNwASXm+uEdhF/N3PMISxXaRc8pkpZ0PVS/dBrcj1sOOh9Abb4hI/O7zcYRv8MbG/p Ku4D0Jy5TcGAoEiL9w4M6Eh3u+a07kQawib2N8+NO4uFyEEI4VaZFWZgS9kdHW1uBo4aun ctBBlGlTnsCHlIItjFHGrawW9c3T1zAM8jqRsFRvK4of5Sp5ijiS2VWJ4xcU97aUj3LDBC 0wi4P0AX110xGun6bW2ykhBEz+BQOKsHw3VG/6+j0+9iIug6loo3/ajwEtO3mQq3TZ7udo 0xKsI+UlgMXFIR/sOUBiNTcy6pI5TYQ/+UG99FTAaYKwXWeLfrAR+Td1MwT5Ww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YZBSG4x1wz17s1; Fri, 17 Jan 2025 07:38:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50H7cstv010722; Fri, 17 Jan 2025 07:38:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50H7csAx010719; Fri, 17 Jan 2025 07:38:54 GMT (envelope-from git) Date: Fri, 17 Jan 2025 07:38:54 GMT Message-Id: <202501170738.50H7csAx010719@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: b2ff4cb1931c - main - krpc/clnt_vc: set vnet(9) context in clnt_vc kthread 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: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b2ff4cb1931c2e1509a5741f6743322699ad1e00 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=b2ff4cb1931c2e1509a5741f6743322699ad1e00 commit b2ff4cb1931c2e1509a5741f6743322699ad1e00 Author: Gleb Smirnoff AuthorDate: 2025-01-17 07:38:43 +0000 Commit: Gleb Smirnoff CommitDate: 2025-01-17 07:38:43 +0000 krpc/clnt_vc: set vnet(9) context in clnt_vc kthread The per-client kthread to offload TLS stuff was added ab0c29af0512d. Let it run in the vnet(9) that matches associated socket. --- sys/rpc/clnt_vc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/rpc/clnt_vc.c b/sys/rpc/clnt_vc.c index e201072b2ee7..d26e6c294af6 100644 --- a/sys/rpc/clnt_vc.c +++ b/sys/rpc/clnt_vc.c @@ -1265,6 +1265,7 @@ clnt_vc_dotlsupcall(void *data) enum clnt_stat ret; uint32_t reterr; + CURVNET_SET(ct->ct_socket->so_vnet); mtx_lock(&ct->ct_lock); ct->ct_rcvstate |= RPCRCVSTATE_UPCALLTHREAD; while (!ct->ct_closed) { @@ -1300,4 +1301,5 @@ clnt_vc_dotlsupcall(void *data) mtx_unlock(&ct->ct_lock); CLNT_RELEASE(cl); kthread_exit(); + CURVNET_RESTORE(); }