Thread (10 messages) 10 messages, 2 authors, 2015-09-24

Re: [PATCH v2] crypto/caam: add backlogging support

flat view

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2015-09-18 14:10:43

On Fri, Sep 18, 2015 at 02:07:38PM +0000, Porosanu Alexandru wrote:
MAY_BACKLOG requests will fail once you run out of memory (f.i. backlogging using crypto_queue)
Now, for this patch requests will be dropped if there are no more "backlogging" slots available.
Would limiting the # of tfms w/MAY_BACKLOG associated with the driver to the # of backlogging slots be OK?
Sure running out of memory is obviously a good reason to fail
a request.  But if you still have memory MAY_BACKLOG must not
fail.

Each tfm must be able to submit at least one MAY_BACKLOG request,
that's the whole point of this flag.  It's used for disk encryption
where failing is not an option.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help