summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid_raid0.c
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2009-06-02 21:23:11 +0000
committermarco <marco@openbsd.org>2009-06-02 21:23:11 +0000
commit9b7f09affb36b1abcdd9402bd56fffa8792a2dc9 (patch)
treeaccfe76e38a9a4084215a46910cf44689a0729c2 /sys/dev/softraid_raid0.c
parentAdd some extra protection against non-monotonic timestamps. ok stevesk (diff)
downloadwireguard-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_raid0.c')
-rw-r--r--sys/dev/softraid_raid0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid_raid0.c b/sys/dev/softraid_raid0.c
index 8584ab74d57..f438c3cc96f 100644
--- a/sys/dev/softraid_raid0.c
+++ b/sys/dev/softraid_raid0.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_raid0.c,v 1.14 2009/06/02 11:38:51 deraadt Exp $ */
+/* $OpenBSD: softraid_raid0.c,v 1.15 2009/06/02 21:23:11 marco Exp $ */
/*
* Copyright (c) 2008 Marco Peereboom <marco@peereboom.us>
*
@@ -289,7 +289,7 @@ sr_raid0_rw(struct sr_workunit *wu)
strip_no, chunk, stripoffs, chunkoffs, physoffs, length,
leftover, data);
- ccb->ccb_buf.b_flags = B_CALL;
+ ccb->ccb_buf.b_flags = B_CALL | B_PHYS;
ccb->ccb_buf.b_iodone = sr_raid0_intr;
ccb->ccb_buf.b_blkno = physoffs >> DEV_BSHIFT;
ccb->ccb_buf.b_bcount = length;