linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] crypto: scompress - defer allocation of percpu scratch buffers
@ 2017-07-21 15:42 Ard Biesheuvel
  2017-07-21 15:42 ` [PATCH v2 1/3] crypto: scompress - don't sleep with preemption disabled Ard Biesheuvel
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Ard Biesheuvel @ 2017-07-21 15:42 UTC (permalink / raw)
  To: linux-crypto, herbert, giovanni.cabiddu; +Cc: Ard Biesheuvel

This is a followup to 'crypto: scompress - eliminate percpu scratch buffers',
which attempted to replace the scompress per-CPU buffer entirely, but as
Herbert pointed out, this is not going to fly in the targeted use cases.

Instead, move the alloc/free of the buffers into the tfm init/exit hooks,
so that we only have the per-CPU buffers allocated if their are any
acomp ciphers of the right kind (i.e, ones that encapsulate a synchronous
implementation) in use (#3)

Patches #1 and #2 are fixes for issues I spotted when working on this code.

Ard Biesheuvel (3):
  crypto: scompress - don't sleep with preemption disabled
  crypto: scompress - free partially allocated scratch buffers on
    failure
  crypto: scompress - defer allocation of scratch buffer to first use

 crypto/scompress.c | 55 ++++++++------------
 1 file changed, 22 insertions(+), 33 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-03  6:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-21 15:42 [PATCH v2 0/3] crypto: scompress - defer allocation of percpu scratch buffers Ard Biesheuvel
2017-07-21 15:42 ` [PATCH v2 1/3] crypto: scompress - don't sleep with preemption disabled Ard Biesheuvel
2017-07-21 15:42 ` [PATCH v2 2/3] crypto: scompress - free partially allocated scratch buffers on failure Ard Biesheuvel
2017-07-21 15:42 ` [PATCH v2 3/3] crypto: scompress - defer allocation of scratch buffer to first use Ard Biesheuvel
2017-07-25 23:36   ` Giovanni Cabiddu
2017-07-26  0:07     ` Ard Biesheuvel
2017-07-28  9:13       ` Giovanni Cabiddu
2017-08-03  6:24 ` [PATCH v2 0/3] crypto: scompress - defer allocation of percpu scratch buffers 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).