From nobody Sun Jan 02 21:39:34 2022 X-Original-To: dev-commits-src-branches@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 8B9A91927810; Sun, 2 Jan 2022 21:39:34 +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 4JRsj220r4z3Qj7; Sun, 2 Jan 2022 21:39:34 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 208AB1982D; Sun, 2 Jan 2022 21:39:34 +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 202LdYaB058077; Sun, 2 Jan 2022 21:39:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 202LdY8U058076; Sun, 2 Jan 2022 21:39:34 GMT (envelope-from git) Date: Sun, 2 Jan 2022 21:39:34 GMT Message-Id: <202201022139.202LdY8U058076@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: 2572b6bd6bf3 - stable/13 - xen/blkfront: Remove CTLFLAG_NEEDGIANT from sysctl. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mav X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 2572b6bd6bf3303d1fa00fe133ec1d3b864fda5d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641159574; 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=cX1o+ZQGffO4nATog2Ogr84O9T00BmqPKeBBemBm44k=; b=usVlQWWb9GFowmhZ8YeTKAmPCrdkzORKQWGaIGO6Fv6nf+ypH71M/LZW5pFD5ERi8HDPS5 9hEvUGoLri4SADDCv1R1m+D7/vs3L+dQqMNIkzDiZdWinpoelOvHCHHJp+fdE1B0Wm+Qms /9fU7KBBlB18MdITaPgoZ5O75t0R20nnHcW+rKbSD/yQuUJ/VoYlBcE+jP7pXlsNZNrQ9b lAp0wUukwizbyW6I/313ZajpiJId13TRkdDnHUqr8LcpQIqkKakwtpg2vy9IYf8sgrtrk3 PL+1gv3ZVQnLXkznc3X6Gbb4MieOtS0fxI3Iay6YdEOY35yzA6R4+QVx3aqdcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641159574; a=rsa-sha256; cv=none; b=oQYQRAMpgVfTax4SdP4Bl+vh63hmgfzvJ8ImF7mtbpeE444+GLCo0Sf7j8wIHm7GYpbTJb QwZ5LWGPFC+D2FzwKmx4b5B6R4jA/yMimg8/rYLbrf3fZz4XVCWJvloj2zzm8kO+MAMt2s kIpEWQZmJnxZ/B7Sobng9xOvs0Wuj8nBpusPpTDtmFWL465vQb7AlBIFm0oppqNhlENefa azhD3MUO68q/KI0jG4pKZ6VHiFvMUQVC/6zEfo6eIiYBx9ufdkzsUDV6nqbbPXSSvSsf0b 7ZQaiiLAe5HXOJkjG4zMCt+KlS3W5s8SaHJi7rVXhPDTb6j8YhybQGcs6rMEKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=2572b6bd6bf3303d1fa00fe133ec1d3b864fda5d commit 2572b6bd6bf3303d1fa00fe133ec1d3b864fda5d Author: Alexander Motin AuthorDate: 2021-12-26 02:24:24 +0000 Commit: Alexander Motin CommitDate: 2022-01-02 21:39:28 +0000 xen/blkfront: Remove CTLFLAG_NEEDGIANT from sysctl. It only converts bit field into string. It does not need locking. MFC after: 1 week (cherry picked from commit 54daceab555cb56765a8d4e63071ea44cd877f53) --- sys/dev/xen/blkfront/blkfront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c index 847644ca1e67..c9ee3b0e3dfb 100644 --- a/sys/dev/xen/blkfront/blkfront.c +++ b/sys/dev/xen/blkfront/blkfront.c @@ -925,7 +925,7 @@ xbd_setup_sysctl(struct xbd_softc *xbd) "communication channel pages (negotiated)"); SYSCTL_ADD_PROC(sysctl_ctx, children, OID_AUTO, - "features", CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_NEEDGIANT, xbd, + "features", CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE, xbd, 0, xbd_sysctl_features, "A", "protocol features (negotiated)"); }