summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJordan Hargrave <jordan@cvs.openbsd.org>2009-06-12 23:56:03 +0000
committerJordan Hargrave <jordan@cvs.openbsd.org>2009-06-12 23:56:03 +0000
commit189261b9ac3c9c273333418c3f55bd3d1d1a25ee (patch)
treeaec36633896c0981f54dbaca4a2fb9a85d14c203 /sys/dev
parent1581ecae0367bcd65d8431822fe0d8be1a910be2 (diff)
Add flag for freeing ccb buffer on I/O completion
Needed for RAID4/RAID5 xor buffers ok marco@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/softraidvar.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/softraidvar.h b/sys/dev/softraidvar.h
index aa38545a54f..e96f6a3ef26 100644
--- a/sys/dev/softraidvar.h
+++ b/sys/dev/softraidvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraidvar.h,v 1.73 2009/06/11 19:42:59 marco Exp $ */
+/* $OpenBSD: softraidvar.h,v 1.74 2009/06/12 23:56:02 jordan Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -233,6 +233,9 @@ struct sr_ccb {
#define SR_CCB_OK 2
#define SR_CCB_FAILED 3
+ int ccb_flag;
+#define SR_CCBF_FREEBUF (1<<0) /* free ccb_buf.b_data */
+
void *ccb_opaque; /* discipline usable pointer */
TAILQ_ENTRY(sr_ccb) ccb_link;