]> www.infradead.org Git - nvme.git/commitdiff
crypto: iaa - fix decomp_bytes_in stats
authorTom Zanussi <tom.zanussi@linux.intel.com>
Mon, 4 Mar 2024 21:20:08 +0000 (15:20 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 2 Apr 2024 02:49:38 +0000 (10:49 +0800)
Decomp stats should use slen, not dlen.  Change both the global and
per-wq stats to use the correct value.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/iaa/iaa_crypto_main.c

index b2191ade9011c683145b115158a1fe1a3694d1a4..cc4200579e548e20ccf86c3fadeb0cbd86fdfd4f 100644 (file)
@@ -1079,8 +1079,8 @@ static void iaa_desc_complete(struct idxd_desc *idxd_desc,
                update_total_comp_bytes_out(ctx->req->dlen);
                update_wq_comp_bytes(iaa_wq->wq, ctx->req->dlen);
        } else {
-               update_total_decomp_bytes_in(ctx->req->dlen);
-               update_wq_decomp_bytes(iaa_wq->wq, ctx->req->dlen);
+               update_total_decomp_bytes_in(ctx->req->slen);
+               update_wq_decomp_bytes(iaa_wq->wq, ctx->req->slen);
        }
 
        if (ctx->compress && compression_ctx->verify_compress) {