cvs commit: src/sys/dev/md md.c
Nate Lawson
nate at root.org
Thu Sep 16 12:40:25 PDT 2004
Pawel Jakub Dawidek wrote:
> pjd 2004-09-16 18:59:19 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/dev/md md.c
> Log:
> First wakeup, then unlock.
>
> Revision Changes Path
> 1.136 +1 -2 src/sys/dev/md/md.c
>
>
> @@ -379,9 +379,8 @@
> bp->bio_bcount = bp->bio_length;
> mtx_lock(&sc->queue_mtx);
> bioq_disksort(&sc->bio_queue, bp);
> - mtx_unlock(&sc->queue_mtx);
> -
> wakeup(sc);
> + mtx_unlock(&sc->queue_mtx);
> }
I think the original order is correct since you can occur 2 switches if
you wakeup first and then unlock.
-Nate
More information about the cvs-all
mailing list