diff options
author | 2013-01-18 01:19:38 +0000 | |
---|---|---|
committer | 2013-01-18 01:19:38 +0000 | |
commit | 8af0be498ef90e1a905b4b73a4a2eb040dd9b6f7 (patch) | |
tree | 6597f58a48fa2edf391c58a438cd66925e3998c6 /sys/dev/softraid.c | |
parent | Tests for Key Revocation Lists (KRLs) (diff) | |
download | wireguard-openbsd-8af0be498ef90e1a905b4b73a4a2eb040dd9b6f7.tar.xz wireguard-openbsd-8af0be498ef90e1a905b4b73a4a2eb040dd9b6f7.zip |
Reset I/O counters when releasing ccbs.
ok krw@
Diffstat (limited to 'sys/dev/softraid.c')
-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 |