diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-14 11:40:51 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-14 11:40:51 +0000 |
commit | 49ff4debd3d4c155448b2b4e3b95b17d9eb575ed (patch) | |
tree | 18155d44b4b3b16a219615f98df0600bc15bfce8 /sys/kern/vfs_aio.c | |
parent | 5462f43fb0cc935e2bfee4f28c06ec3d1c71626b (diff) | |
download | src-test2-49ff4debd3d4c155448b2b4e3b95b17d9eb575ed.tar.gz src-test2-49ff4debd3d4c155448b2b4e3b95b17d9eb575ed.zip |
Notes
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 3e4e821f6c29..7d5fd4fa2f0d 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -13,7 +13,7 @@ * bad that happens because of using this software isn't the responsibility * of the author. This software is distributed AS-IS. * - * $Id: vfs_aio.c,v 1.55 1999/08/08 18:42:48 phk Exp $ + * $Id: vfs_aio.c,v 1.56 1999/08/13 10:10:01 phk Exp $ */ /* @@ -927,11 +927,8 @@ aio_qphysio(p, aiocbe) int fd; int s; int cnt; - dev_t dev; int rw; - d_strategy_t *fstrategy; struct cdevsw *cdev; - struct cdevsw *bdev; cb = &aiocbe->uaiocb; fdp = p->p_fd; @@ -967,7 +964,6 @@ aio_qphysio(p, aiocbe) if (cdev->d_bmaj == -1) { return -1; } - bdev = cdev; ki = p->p_aioinfo; if (ki->kaio_buffer_count >= ki->kaio_ballowed_count) { @@ -979,8 +975,6 @@ aio_qphysio(p, aiocbe) return -1; } - dev = makebdev(bdev->d_bmaj, minor(vp->v_rdev)); - /* * Physical I/O is charged directly to the process, so we don't have * to fake it. @@ -1002,7 +996,7 @@ aio_qphysio(p, aiocbe) * get a copy of the kva from the physical buffer */ bp->b_caller1 = p; - bp->b_dev = dev; + bp->b_dev = vp->v_rdev; error = bp->b_error = 0; if (cb->aio_lio_opcode == LIO_WRITE) { @@ -1041,12 +1035,11 @@ aio_qphysio(p, aiocbe) aiocbe->jobstate = JOBST_JOBQBUF; cb->_aiocb_private.status = cb->aio_nbytes; num_buf_aio++; - fstrategy = bdev->d_strategy; bp->b_error = 0; splx(s); /* perform transfer */ - (*fstrategy)(bp); + BUF_STRATEGY(bp, 0); s = splbio(); /* |