diff options
author | truckman <truckman@FreeBSD.org> | 2003-12-07 23:20:53 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2003-12-07 23:20:53 +0000 |
commit | 87a37b565f34f80514db04e4ee3644fb3e4e50e7 (patch) | |
tree | 08763dca3d8a0aa36d997c2f47081e2a4a552a68 /sys/geom/geom_io.c | |
parent | 7df01b5cbc8defa98cbd9592a515ff05b77f3093 (diff) | |
download | FreeBSD-src-87a37b565f34f80514db04e4ee3644fb3e4e50e7.zip FreeBSD-src-87a37b565f34f80514db04e4ee3644fb3e4e50e7.tar.gz |
Correct usage of mtx_init() API. This is not a functional change since
the code happened to work because MTX_DEF and NULL are both defined as 0.
Reviewed by: phk
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r-- | sys/geom/geom_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index b9ec513..446702a 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -313,7 +313,7 @@ g_io_schedule_down(struct thread *tp __unused) struct mtx mymutex; bzero(&mymutex, sizeof mymutex); - mtx_init(&mymutex, "g_xdown", MTX_DEF, 0); + mtx_init(&mymutex, "g_xdown", NULL, MTX_DEF); for(;;) { g_bioq_lock(&g_bio_run_down); @@ -365,7 +365,7 @@ g_io_schedule_up(struct thread *tp __unused) struct mtx mymutex; bzero(&mymutex, sizeof mymutex); - mtx_init(&mymutex, "g_xup", MTX_DEF, 0); + mtx_init(&mymutex, "g_xup", NULL, MTX_DEF); for(;;) { g_bioq_lock(&g_bio_run_up); bp = g_bioq_first(&g_bio_run_up); |