From 87a37b565f34f80514db04e4ee3644fb3e4e50e7 Mon Sep 17 00:00:00 2001 From: truckman Date: Sun, 7 Dec 2003 23:20:53 +0000 Subject: 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 --- sys/geom/geom_disk.c | 2 +- sys/geom/geom_io.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index b2a3717..9d40cfc 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -72,7 +72,7 @@ static void g_disk_init(struct g_class *mp __unused) { - mtx_init(&g_disk_done_mtx, "g_disk_done", MTX_DEF, 0); + mtx_init(&g_disk_done_mtx, "g_disk_done", NULL, MTX_DEF); } static void 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); -- cgit v1.1