diff options
-rw-r--r-- | sys/dev/softraid.c | 3 | ||||
-rw-r--r-- | sys/dev/softraid_raid6.c | 3 | ||||
-rw-r--r-- | sys/dev/softraid_raidp.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index f951a4d57eb..69a397fdb27 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.303 2013/05/21 14:25:23 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.304 2013/05/21 14:30:00 jsing Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -4675,6 +4675,7 @@ sr_rebuild_thread(void *arg) if (sr_check_io_collision(wu_r)) goto queued; + wu_r->swu_state = SR_WU_INPROGRESS; sr_raid_startwu(wu_r); queued: splx(s); diff --git a/sys/dev/softraid_raid6.c b/sys/dev/softraid_raid6.c index 231694a8772..c77583a0187 100644 --- a/sys/dev/softraid_raid6.c +++ b/sys/dev/softraid_raid6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raid6.c,v 1.50 2013/05/21 14:25:23 jsing Exp $ */ +/* $OpenBSD: softraid_raid6.c,v 1.51 2013/05/21 14:30:01 jsing Exp $ */ /* * Copyright (c) 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2009 Jordan Hargrave <jordan@openbsd.org> @@ -405,6 +405,7 @@ sr_raid6_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; } 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; } |