diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2023-02-16 13:35:15 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-03-14 12:06:41 +0300 |
commit | 42808e5dc602c12ef3eb42cf96cb416b55205fa4 (patch) | |
tree | e030d98900ddfa57ce8b2df32c94d2794e615635 /ipc | |
parent | 035d78a11c56828bb4923fa87eeb9ed2546d52bd (diff) | |
download | linux-42808e5dc602c12ef3eb42cf96cb416b55205fa4.tar.xz |
crypto: hash - Count error stats differently
Move all stat code specific to hash into the hash code.
While we're at it, change the stats so that bytes and counts
are always incremented even in case of error. This allows the
reference counting to be removed as we can now increment the
counters prior to the operation.
After the operation we simply increase the error count if necessary.
This is safe as errors can only occur synchronously (or rather,
the existing code already ignored asynchronous errors which are
only visible to the callback function).
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions