* Asynchronous usage of PCOMPRESS
@ 2014-11-10 18:16 Tom Lendacky
2014-11-11 15:02 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Tom Lendacky @ 2014-11-10 18:16 UTC (permalink / raw)
To: Herbert Xu, linux-crypto
Hi Herbert,
Is the PCOMPRESS algorithm supposed to support asynchronous
implementations? In other words, are callers expected to handle the
-EINPROGRESS or -EAGAIN return codes that can be returned by an
asynchronous implementation?
Or is it assumed that if the CRYPTO_ALG_ASYNC flag is not set then the
code path must be synchronous? If that's the case, should the pcompress
support be updated to look for synchronous implementations if the
CRYPTO_ALG_ASYNC flag isn't set or should asynchronous implementations
provide a synchronous fallback?
Thanks,
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Asynchronous usage of PCOMPRESS
2014-11-10 18:16 Asynchronous usage of PCOMPRESS Tom Lendacky
@ 2014-11-11 15:02 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2014-11-11 15:02 UTC (permalink / raw)
To: Tom Lendacky; +Cc: linux-crypto
On Mon, Nov 10, 2014 at 12:16:51PM -0600, Tom Lendacky wrote:
> Hi Herbert,
>
> Is the PCOMPRESS algorithm supposed to support asynchronous
> implementations? In other words, are callers expected to handle the
> -EINPROGRESS or -EAGAIN return codes that can be returned by an
> asynchronous implementation?
>
> Or is it assumed that if the CRYPTO_ALG_ASYNC flag is not set then the
> code path must be synchronous? If that's the case, should the pcompress
> support be updated to look for synchronous implementations if the
> CRYPTO_ALG_ASYNC flag isn't set or should asynchronous implementations
> provide a synchronous fallback?
The pcomp interface is entirely synchronous so for async support
you'll have to create a new interface. pcomp is simply meant to
replace the existing compress interface but unfortunately that job
has not been completed as yet.
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-11 15:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-10 18:16 Asynchronous usage of PCOMPRESS Tom Lendacky
2014-11-11 15:02 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).