Deleted Added
full compact
scd.c (111815) scd.c (112946)
1/*-
2 * Copyright (c) 1995 Mikael Hybsch
3 * All rights reserved.
4 *
5 * Portions of this file are copied from mcd.c
6 * which has the following copyrights:
7 *
8 * Copyright 1993 by Holger Veit (data part)

--- 26 unchanged lines hidden (view full) ---

35 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
39 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 */
42
1/*-
2 * Copyright (c) 1995 Mikael Hybsch
3 * All rights reserved.
4 *
5 * Portions of this file are copied from mcd.c
6 * which has the following copyrights:
7 *
8 * Copyright 1993 by Holger Veit (data part)

--- 26 unchanged lines hidden (view full) ---

35 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
39 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 */
42
43/* $FreeBSD: head/sys/dev/scd/scd.c 111815 2003-03-03 12:15:54Z phk $ */
43/* $FreeBSD: head/sys/dev/scd/scd.c 112946 2003-04-01 15:06:26Z phk $ */
44
45#undef SCD_DEBUG
46
47#include <sys/param.h>
48#include <sys/systm.h>
49#include <sys/kernel.h>
50#include <sys/conf.h>
51#include <sys/fcntl.h>

--- 234 unchanged lines hidden (view full) ---

286 goto bad;
287 }
288
289 bp->bio_pblkno = bp->bio_blkno;
290 bp->bio_resid = 0;
291
292 /* queue it */
293 s = splbio();
44
45#undef SCD_DEBUG
46
47#include <sys/param.h>
48#include <sys/systm.h>
49#include <sys/kernel.h>
50#include <sys/conf.h>
51#include <sys/fcntl.h>

--- 234 unchanged lines hidden (view full) ---

286 goto bad;
287 }
288
289 bp->bio_pblkno = bp->bio_blkno;
290 bp->bio_resid = 0;
291
292 /* queue it */
293 s = splbio();
294 bioqdisksort(&sc->data.head, bp);
294 bioq_disksort(&sc->data.head, bp);
295 splx(s);
296
297 /* now check whether we can perform processing */
298 scd_start(sc);
299 return;
300
301bad:
302 bp->bio_flags |= BIO_ERROR;

--- 1119 unchanged lines hidden ---
295 splx(s);
296
297 /* now check whether we can perform processing */
298 scd_start(sc);
299 return;
300
301bad:
302 bp->bio_flags |= BIO_ERROR;

--- 1119 unchanged lines hidden ---