diff options
| author | hannken <hannken@NetBSD.org> | 2004-01-25 18:06:48 +0000 |
|---|---|---|
| committer | hannken <hannken@NetBSD.org> | 2004-01-25 18:06:48 +0000 |
| commit | 3db4e2acd8e5eada26b08616d608d82fc4af74a0 (patch) | |
| tree | 1b03b5d463d3843c9d4fd5aabc3aff9b93dd232b /sys/dev/ata/ata_raid.c | |
| parent | d7f6cbf8bcfc796c13c751a3bcda9e4ce70cb790 (diff) | |
Make VOP_STRATEGY(bp) a real VOP as discussed on tech-kern.
VOP_STRATEGY(bp) is replaced by one of two new functions:
- VOP_STRATEGY(vp, bp) Call the strategy routine of vp for bp.
- DEV_STRATEGY(bp) Call the d_strategy routine of bp->b_dev for bp.
DEV_STRATEGY(bp) is used only for block-to-block device situations.
Diffstat (limited to 'sys/dev/ata/ata_raid.c')
| -rw-r--r-- | sys/dev/ata/ata_raid.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ata/ata_raid.c b/sys/dev/ata/ata_raid.c index a777f8f034e..545202a1133 100644 --- a/sys/dev/ata/ata_raid.c +++ b/sys/dev/ata/ata_raid.c @@ -1,4 +1,4 @@ -/* $NetBSD: ata_raid.c,v 1.7 2003/12/14 05:37:25 thorpej Exp $ */ +/* $NetBSD: ata_raid.c,v 1.8 2004/01/25 18:06:48 hannken Exp $ */ /* * Copyright (c) 2003 Wasabi Systems, Inc. @@ -40,7 +40,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.7 2003/12/14 05:37:25 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.8 2004/01/25 18:06:48 hannken Exp $"); #include <sys/param.h> #include <sys/buf.h> @@ -302,14 +302,13 @@ ata_raid_config_block_rw(struct vnode *vp, daddr_t blkno, void *buf, BUF_INIT(bp); bp->b_vp = vp; - bp->b_dev = vp->v_rdev; bp->b_blkno = blkno; bp->b_bcount = bp->b_resid = size; bp->b_flags = bflags; bp->b_proc = curproc; bp->b_data = buf; - VOP_STRATEGY(bp); + VOP_STRATEGY(vp, bp); error = biowait(bp); s = splbio(); |
