Index: g_raid3.c =================================================================== RCS file: /usr/repo/src/sys/geom/raid3/g_raid3.c,v retrieving revision 1.40.2.8 diff -u -p -r1.40.2.8 g_raid3.c --- g_raid3.c 26 Apr 2006 06:34:39 -0000 1.40.2.8 +++ g_raid3.c 27 Apr 2006 06:49:41 -0000 @@ -2040,8 +2040,10 @@ g_raid3_worker(void *arg) if (g_raid3_register_request(bp) != 0) { mtx_lock(&sc->sc_queue_mtx); bioq_insert_head(&sc->sc_queue, bp); + sx_xunlock(&sc->sc_lock); MSLEEP(&sc->sc_queue, &sc->sc_queue_mtx, PRIBIO | PDROP, "r3:lowmem", hz / 10); + sx_xlock(&sc->sc_lock); } } G_RAID3_DEBUG(5, "%s: I'm here 9.", __func__);