zswap: remove the memcpy if acomp is not sleepable
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
- v6 Latest2 patches 11 repliesApplied 2/2
- v53 patches 4 repliesSuperseded
- v43 patches 4 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 3 patches | 3 replies | Superseded | |
| v2 | 3 patches | 5 replies | Superseded | |
| v1 | 3 patches | 7 replies | Superseded |
Patches in v6 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | crypto: introduce: acomp_is_async to expose if comp drivers might sleepinclude/ | +6 | 1 reply | Applied |
| 2/2 | mm/zswap: remove the memcpy if acomp is not sleepablemm/ | +4 | 1 reply | Applied |
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.
| Patch | Herbert Xu | Chengming Zhou | Nhat Pham | Yosry Ahmed | Chris Li | Johannes Weiner |
|---|---|---|---|---|---|---|
| Series | A-b | |||||
| 1/2 | A-b | A-b | ||||
| 2/2 | T-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.
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