From 54daceab555cb56765a8d4e63071ea44cd877f53 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sat, 25 Dec 2021 21:24:24 -0500 Subject: [PATCH] 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 4f67d1f827e..72498620764 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)"); }