Re: [PATCH v5 02/12] crypto: acomp - Define new interfaces for compress/decompress batching.
From: Herbert Xu
Date: Sat Feb 22 2025 - 02:23:46 EST
On Sat, Feb 22, 2025 at 08:13:13PM +1300, Barry Song wrote:
>
> Somehow, I find your comment reasonable. Another point I want
> to mention is the semantic difference. For example, in a system
> with only one algorithm, a dst_buf overflow still means a successful
> swap-out. However, other errors actually indicate an I/O failure.
> In such cases, vmscan.c will log the relevant error in pageout() to
> notify the user.
I'm talking specifically about the error from the Crypto API,
not any other error. So if you werer using some sort of an
offload device to do the compression, that could indeed fail
due to an IO error (perhaps the PCI bus is on fire :)
But because that's reported through the Crypto API, it should
not be treated any differently than an incompressible page,
except for reporting purposes.
Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt