git: 2572b6bd6bf3 - stable/13 - xen/blkfront: Remove CTLFLAG_NEEDGIANT from sysctl.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Jan 2022 21:39:34 UTC
The branch stable/13 has been updated by mav:
URL: https://cgit.FreeBSD.org/src/commit/?id=2572b6bd6bf3303d1fa00fe133ec1d3b864fda5d
commit 2572b6bd6bf3303d1fa00fe133ec1d3b864fda5d
Author: Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-26 02:24:24 +0000
Commit: Alexander Motin <mav@FreeBSD.org>
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)");
}