Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Dec 2021 02:26:18 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 54daceab555c - main - xen/blkfront: Remove CTLFLAG_NEEDGIANT from sysctl.
Message-ID:  <202112260226.1BQ2QIJE066883@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=54daceab555cb56765a8d4e63071ea44cd877f53

commit 54daceab555cb56765a8d4e63071ea44cd877f53
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-26 02:24:24 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-26 02:24:24 +0000

    xen/blkfront: Remove CTLFLAG_NEEDGIANT from sysctl.
    
    It only converts bit field into string.  It does not need locking.
    
    MFC after:      1 week
---
 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 4f67d1f827e7..72498620764b 100644
--- a/sys/dev/xen/blkfront/blkfront.c
+++ b/sys/dev/xen/blkfront/blkfront.c
@@ -924,7 +924,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)");
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112260226.1BQ2QIJE066883>