diff options
| author | 2009-06-02 21:23:11 +0000 | |
|---|---|---|
| committer | 2009-06-02 21:23:11 +0000 | |
| commit | 9b7f09affb36b1abcdd9402bd56fffa8792a2dc9 (patch) | |
| tree | accfe76e38a9a4084215a46910cf44689a0729c2 /sys/dev/softraid_raid1.c | |
| parent | Add some extra protection against non-monotonic timestamps. ok stevesk (diff) | |
| download | wireguard-openbsd-9b7f09affb36b1abcdd9402bd56fffa8792a2dc9.tar.xz wireguard-openbsd-9b7f09affb36b1abcdd9402bd56fffa8792a2dc9.zip | |
Abuse bio layer a little less by marking fake buffers with B_PHYS.
From beck with lots of squealing and ear bleeds.
Issue originally reported by todd.
ok beck
Diffstat (limited to 'sys/dev/softraid_raid1.c')
| -rw-r--r-- | sys/dev/softraid_raid1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid_raid1.c b/sys/dev/softraid_raid1.c index 719f18bed33..9a1195d07ef 100644 --- a/sys/dev/softraid_raid1.c +++ b/sys/dev/softraid_raid1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raid1.c,v 1.13 2009/06/02 16:32:23 marco Exp $ */ +/* $OpenBSD: softraid_raid1.c,v 1.14 2009/06/02 21:23:11 marco Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -355,6 +355,7 @@ sr_raid1_rw(struct sr_workunit *wu) ccb->ccb_buf.b_iodone = sr_raid1_intr; } + ccb->ccb_buf.b_flags |= B_PHYS; ccb->ccb_buf.b_blkno = blk; ccb->ccb_buf.b_bcount = xs->datalen; ccb->ccb_buf.b_bufsize = xs->datalen; @@ -550,7 +551,6 @@ sr_raid1_intr(struct buf *bp) if (wu->swu_flags & SR_WUF_REBUILD) { if (wu->swu_xs->flags & SCSI_DATA_OUT) { - //printf("waking up write\n"); wu->swu_flags |= SR_WUF_REBUILDIOCOMP; wakeup(wu); } |
