diff options
author | 2016-12-21 12:17:15 +0000 | |
---|---|---|
committer | 2016-12-21 12:17:15 +0000 | |
commit | b44c9f5914d48c4b10cbb7eb5d8d6e8ff265c80a (patch) | |
tree | ca405eb60950f8f1589bd8f18e46d81a29b4f9dd /sys/dev/pv/xen.c | |
parent | Remove recursive splsoftnet(). (diff) | |
download | wireguard-openbsd-b44c9f5914d48c4b10cbb7eb5d8d6e8ff265c80a.tar.xz wireguard-openbsd-b44c9f5914d48c4b10cbb7eb5d8d6e8ff265c80a.zip |
Remove the rwlock paranoia since we're under KERNEL_LOCK anyway
Diffstat (limited to 'sys/dev/pv/xen.c')
-rw-r--r-- | sys/dev/pv/xen.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/pv/xen.c b/sys/dev/pv/xen.c index fcf7ab44ae7..c1a05e32816 100644 --- a/sys/dev/pv/xen.c +++ b/sys/dev/pv/xen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xen.c,v 1.69 2016/12/19 21:07:10 mikeb Exp $ */ +/* $OpenBSD: xen.c,v 1.70 2016/12/21 12:17:15 mikeb Exp $ */ /* * Copyright (c) 2015 Mike Belopuhov @@ -1309,10 +1309,6 @@ xen_probe_devices(struct xen_softc *sc) xst.xst_cookie = sc->sc_xs; xst.xst_flags |= XST_POLL; - rw_init(&sc->sc_devlck, "xenprobe"); - - rw_enter_write(&sc->sc_devlck); - if ((error = xs_cmd(&xst, XS_LIST, "device", &iovp1, &iov1_cnt)) != 0) return (error); @@ -1355,8 +1351,6 @@ xen_probe_devices(struct xen_softc *sc) } out: - rw_exit_write(&sc->sc_devlck); - if (iovp2) xs_resfree(&xst, iovp2, iov2_cnt); xs_resfree(&xst, iovp1, iov1_cnt); @@ -1379,8 +1373,6 @@ xen_hotplug(void *arg) xst.xst_id = 0; xst.xst_cookie = sc->sc_xs; - rw_enter_write(&sc->sc_devlck); - snprintf(path, sizeof(path), "device/%s", xdl->dl_node); if ((error = xs_cmd(&xst, XS_LIST, path, &iovp, &iov_cnt)) != 0) return; @@ -1423,8 +1415,6 @@ xen_hotplug(void *arg) } } - rw_exit_write(&sc->sc_devlck); - free(seen, M_TEMP, iov_cnt); xs_resfree(&xst, iovp, iov_cnt); |