summaryrefslogtreecommitdiff
path: root/sys/dev/softraid_raidp.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2013-05-21 14:30:02 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2013-05-21 14:30:02 +0000
commit5d78a47daf36d5057456abaca950776be8f9f7b6 (patch)
tree93c4858db8cd6bb9856f47ff287e95b0cfaf6a58 /sys/dev/softraid_raidp.c
parentcb4f6508aeb3f5260bc44d7440e19a344b945b02 (diff)
Fix missing work unit state initialisations.
Diffstat (limited to 'sys/dev/softraid_raidp.c')
-rw-r--r--sys/dev/softraid_raidp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/softraid_raidp.c b/sys/dev/softraid_raidp.c
index bb2d7753687..510a5572f23 100644
--- a/sys/dev/softraid_raidp.c
+++ b/sys/dev/softraid_raidp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_raidp.c,v 1.47 2013/05/21 14:25:23 jsing Exp $ */
+/* $OpenBSD: softraid_raidp.c,v 1.48 2013/05/21 14:30:01 jsing Exp $ */
/*
* Copyright (c) 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2009 Jordan Hargrave <jordan@openbsd.org>
@@ -360,6 +360,7 @@ sr_raidp_rw(struct sr_workunit *wu)
printf("%s: can't get wu_r", DEVNAME(sd->sd_sc));
goto bad;
}
+ wu_r->swu_state = SR_WU_INPROGRESS;
wu_r->swu_flags |= SR_WUF_DISCIPLINE;
}