diff options
author | phk <phk@FreeBSD.org> | 2003-03-24 13:35:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-24 13:35:06 +0000 |
commit | dc9d8429c2275d60d84aa603ba84287b6dee7d92 (patch) | |
tree | 7ec72fab08d9d1e3543334c7136af89db428eabe /sys/geom/geom_event.c | |
parent | 969a2c228e1be4c4353588033dfb9965d3b6e410 (diff) | |
download | FreeBSD-src-dc9d8429c2275d60d84aa603ba84287b6dee7d92.zip FreeBSD-src-dc9d8429c2275d60d84aa603ba84287b6dee7d92.tar.gz |
Save a lock: Grab the stall_events SX lock exclusively so it also serialize
OAM reqests.
Diffstat (limited to 'sys/geom/geom_event.c')
-rw-r--r-- | sys/geom/geom_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index 5413a34..0af148f 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -81,14 +81,14 @@ void g_stall_events(void) { - sx_slock(&g_eventstall); + sx_xlock(&g_eventstall); } void g_release_events(void) { - sx_sunlock(&g_eventstall); + sx_xunlock(&g_eventstall); } void |