Skip to content

zswap: remove the memcpy if acomp is not sleepable

Barry Song linux-crypto linux-mm lkml 6 versions – Applied

Status from this message: [merged mm-stable] mm-zswap-remove-the-memcpy-if-acomp-is-not-sleepable.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 11 repliesApplied 2/2
  2. v53 patches 4 repliesSuperseded
  3. v43 patches 4 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches3 repliesSuperseded
v23 patches5 repliesSuperseded
v13 patches7 repliesSuperseded

Patches in v6 All 2 applied

#Subject and filesSizeRepliesApplied
1/2crypto: introduce: acomp_is_async to expose if comp drivers might sleepinclude/crypto/acompress.h+6 -01 replyApplied
2/2mm/zswap: remove the memcpy if acomp is not sleepablemm/zswap.c+4 -21 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHerbert XuChengming ZhouNhat PhamYosry AhmedChris LiJohannes Weiner
SeriesA-b
1/2A-b A-b
2/2T-b R-b R-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/2] zswap: remove the memcpy if acomp is not sleepable

From: Barry Song <[email protected]>

In zswap, if we use zsmalloc, we cannot sleep while we map the compressed memory, so we copy it to a temporary buffer. By knowing the alg won't sleep can help zswap to avoid the memcpy.
Thus we introduce an API in crypto to expose if acomp is async, and zswap can use it to decide if it can remove copying to the tmp buffer.

-v6:
* add acked-by of Herbert, Thanks!
* remove patch 3/3 from the series, as that one will go through crypto

Barry Song (2):
crypto: introduce: acomp_is_async to expose if comp drivers might
sleep
mm/zswap: remove the memcpy if acomp is not sleepable

 include/crypto/acompress.h | 6 ++++++
 mm/zswap.c                 | 6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1