diff options
author | imp <imp@FreeBSD.org> | 2013-02-21 02:34:04 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2013-02-21 02:34:04 +0000 |
commit | 959b078e13257d095bb1374d6ddad433303847e8 (patch) | |
tree | 40fc6429921ac89587b6ad8f62110519cece3de6 /sys/dev/mcd | |
parent | c21cb04a9d81b636f6fbd1358fb124ae5006714e (diff) | |
download | FreeBSD-src-959b078e13257d095bb1374d6ddad433303847e8.zip FreeBSD-src-959b078e13257d095bb1374d6ddad433303847e8.tar.gz |
The other giant locked storage drivers have removed splbio(), for the
most part, so remove it here too. Anybody locking this driver will need
far more than locks where splbio() were, so remove these nops.
Diffstat (limited to 'sys/dev/mcd')
-rw-r--r-- | sys/dev/mcd/mcd.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index 86e40c4..3e9617d 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -289,7 +289,6 @@ static void mcdstrategy(struct bio *bp) { struct mcd_softc *sc; - int s; sc = (struct mcd_softc *)bp->bio_dev->si_drv1; @@ -318,9 +317,7 @@ mcdstrategy(struct bio *bp) bp->bio_resid = 0; /* queue it */ - s = splbio(); bioq_disksort(&sc->data.head, bp); - splx(s); /* now check whether we can perform processing */ mcd_start(sc); @@ -338,10 +335,8 @@ static void mcd_start(struct mcd_softc *sc) { struct bio *bp; - int s = splbio(); if (sc->data.flags & MCDMBXBSY) { - splx(s); return; } @@ -350,10 +345,8 @@ mcd_start(struct mcd_softc *sc) /* block found to process, dequeue */ /*MCD_TRACE("mcd_start: found block bp=0x%x\n",bp,0,0,0);*/ sc->data.flags |= MCDMBXBSY; - splx(s); } else { /* nothing to do */ - splx(s); return; } |