From nobody Thu Feb 16 22:34:11 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 4PHqVq687mz3qRcC; Thu, 16 Feb 2023 22:34:11 +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 4PHqVq5dK6z4Gsw; Thu, 16 Feb 2023 22:34:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676586851; 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=Z75Q9n+CeBMjAJ2Jlwi5Unjb1w1XgGXJ3x10kMPYd/Y=; b=tUdCjoTd/KxTB4GwkOLJYOGcVrN89ebIoxq6RsW+WjkV28v4oRkN1nSx8HToAfVDuDNTj5 iW3wy5gNnHMVNjcHRv3aXf/9+w3KkeZaVWWBMooDpQ9uFc45zZOmESXSOHrim/Bk11SUfc Q5x9RdXoWmRVgyHpm2pNn0WfhNgnoXQagrQYaXNwfsnS24+Bge/e0ibV5hQaNVVHv6KZCS aeK0S4dhIjgcl6ZvfY4cFxX28v4eCjtrA6I7k23lUffWy4x7p7t2jBgYX3AwFA6RN5hFSG 4DSThm38nXWfGWvL6azGROkqp29KqmZdx18pxLUIMNl+vmYg7VkjV+v3IaVnSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676586851; 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=Z75Q9n+CeBMjAJ2Jlwi5Unjb1w1XgGXJ3x10kMPYd/Y=; b=hI7mYYSuQ8l+Sz6hdAHvlOO+ZB2KY9aW+mQv4Mw7fghOgxVNvn4U1NjNPhMm3joFzYVwSZ xuBIfDcWNOP3UGeEKEn+dM+Go5uxtko8osXZR0EeQRTY9hTPXYRefwWMjC58eBfT2FObJ3 5krdaMlOZZs7U0bZacbu0K1X2pTOW+7EC6Lbm3ZSj6Z7YJRmIXGUARicDUKYMDxHRW5+Ck TeERxhL4UISdYNX+HU9RrSMXFmqIwqONE4TiQAyErt+w9a781YovM/uD+Q/MGmSc6xq11A ypbMfsFshz7scMRNF9JFpzAZxZAX0rb6CX4aNKawqdXs03hHaIgH6Xo9LwtTVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676586851; a=rsa-sha256; cv=none; b=VRzSHvMS29dMnMiTwHQaKJUBpOz2UqZ/49dNXH54OviWmIFmrBjBccmAyXru2wpx5B0IcN qWvxRJKvsJcCfBh3tcGm7IoA4BbwpsgFJPWZqJypldkujgmFbIzcns+zVFeno3TZRD4b0L aOFb94gN3/6crRV+G3SKXwQ+baxvQ1vDBas/MInv/1w2zfT0lrXRmPUsVgbc7xFcyK9yjr XOizjnM/LViCXYLNEYd4vrH+6n1LIHHTs6l499L6Kx8lCPP4uku9ZJLlq/IghNWJLE8RJT y0vUiB8DEGXzbiR9ReyhcVhGSEVLfD9zZsHaZKTvi/B+fncAFgMltl0SibK37A== 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 4PHqVq4hQlzLVH; Thu, 16 Feb 2023 22:34:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31GMYBJG074270; Thu, 16 Feb 2023 22:34:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GMYBWH074269; Thu, 16 Feb 2023 22:34:11 GMT (envelope-from git) Date: Thu, 16 Feb 2023 22:34:11 GMT Message-Id: <202302162234.31GMYBWH074269@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Rick Macklem Subject: git: 780bae23b8e6 - main - krpc: Replace !jailed() with IS_DEFAULT_VNET() 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: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 780bae23b8e6c386e4b2f971eb27fa3bd1a6edd1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=780bae23b8e6c386e4b2f971eb27fa3bd1a6edd1 commit 780bae23b8e6c386e4b2f971eb27fa3bd1a6edd1 Author: Rick Macklem AuthorDate: 2023-02-16 22:32:50 +0000 Commit: Rick Macklem CommitDate: 2023-02-16 22:32:50 +0000 krpc: Replace !jailed() with IS_DEFAULT_VNET() Since svcpool_create() is now called from an initialization function, !jailed() no longer works. Replace it with IS_DEFAULT_VNET(). MFC after: 3 months --- sys/rpc/svc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/rpc/svc.c b/sys/rpc/svc.c index 065da0cc23a4..5ebf1f5a48b3 100644 --- a/sys/rpc/svc.c +++ b/sys/rpc/svc.c @@ -127,7 +127,7 @@ svcpool_create(const char *name, struct sysctl_oid_list *sysctl_base) pool->sp_space_low = (pool->sp_space_high / 3) * 2; sysctl_ctx_init(&pool->sp_sysctl); - if (!jailed(curthread->td_ucred) && sysctl_base) { + if (IS_DEFAULT_VNET(curvnet) && sysctl_base) { SYSCTL_ADD_PROC(&pool->sp_sysctl, sysctl_base, OID_AUTO, "minthreads", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, pool, 0, svcpool_minthread_sysctl, "I",