diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2013-01-18 01:19:39 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2013-01-18 01:19:39 +0000 |
commit | 05338a642035355ad7582c3271e93542e667b26f (patch) | |
tree | 8cc0eaf0596be52ffeaeb7a5bd1748bfe081cb5f /sys | |
parent | dd01a00603c325ddcd7b14978bdb6a915ca6fed8 (diff) |
Reset I/O counters when releasing ccbs.
ok krw@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/softraid.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index ac376b86f2b..50258cdbf56 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.284 2013/01/16 07:07:38 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.285 2013/01/18 01:19:38 jsing Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -2217,6 +2217,11 @@ sr_wu_release_ccbs(struct sr_workunit *wu) TAILQ_REMOVE(&wu->swu_ccb, ccb, ccb_link); sr_ccb_put(ccb); } + + wu->swu_io_count = 0; + wu->swu_ios_complete = 0; + wu->swu_ios_failed = 0; + wu->swu_ios_succeeded = 0; } void |