Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1413625
| From | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 0/7] zram: switch to crypto api |
| Date | 2016-06-04 04:50 +0200 |
| Message-ID | <rG9OV-33V-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hello, This has started as a 'add zlib support' work, but after some thinking I saw no blockers for a bigger change -- a switch to crypto API. We don't have an idle zstreams list anymore and our write path now works absolutely differently, preventing preemption during compression. This removes possibilities of read paths preempting writes at wrong places and opens the door for a move from custom LZO/LZ4 compression backends implementation to a more generic one, using crypto compress API. This patch set also eliminates the need of a new context-less crypto API interface, which was quite hard to sell, so we can move along faster. v3: -- use IS_ENABLED in the backends array, so crypto_has_comp() can be avoided (saving some time and memory). v2: -- addressed Minchan's review points -- allow out-of-tree comp algorithms, per Minchan -- some other cleanups, reworks and improvements Sergey Senozhatsky (7): zram: rename zstrm find-release functions zram: switch to crypto compress API zram: use crypto api to check alg availability zram: cosmetic: cleanup documentation zram: delete custom lzo/lz4 zram: add more compression algorithms zram: drop gfp_t from zcomp_strm_alloc() Documentation/blockdev/zram.txt | 82 ++++++++++++---------- drivers/block/zram/Kconfig | 15 +--- drivers/block/zram/Makefile | 4 +- drivers/block/zram/zcomp.c | 150 +++++++++++++++++++++++++--------------- drivers/block/zram/zcomp.h | 36 +++------- drivers/block/zram/zcomp_lz4.c | 56 --------------- drivers/block/zram/zcomp_lz4.h | 17 ----- drivers/block/zram/zcomp_lzo.c | 56 --------------- drivers/block/zram/zcomp_lzo.h | 17 ----- drivers/block/zram/zram_drv.c | 42 ++++++----- drivers/block/zram/zram_drv.h | 5 +- 11 files changed, 180 insertions(+), 300 deletions(-) delete mode 100644 drivers/block/zram/zcomp_lz4.c delete mode 100644 drivers/block/zram/zcomp_lz4.h delete mode 100644 drivers/block/zram/zcomp_lzo.c delete mode 100644 drivers/block/zram/zcomp_lzo.h -- 2.8.3.394.g3916adf
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v3 0/7] zram: switch to crypto api Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 04:50 +0200
[PATCH v3 1/7] zram: rename zstrm find-release functions Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 04:50 +0200
[PATCH v3 4/7] zram: cosmetic: cleanup documentation Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200
[PATCH v3 6/7] zram: add more compression algorithms Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200
Re: [PATCH v3 6/7] zram: add more compression algorithms Minchan Kim <minchan@kernel.org> - 2016-06-07 08:30 +0200
[PATCH v3 7/7] zram: drop gfp_t from zcomp_strm_alloc() Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200
[PATCH v3 3/7] zram: use crypto api to check alg availability Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200
Re: [PATCH v3 3/7] zram: use crypto api to check alg availability Minchan Kim <minchan@kernel.org> - 2016-06-07 08:20 +0200
[PATCH v3 5/7] zram: delete custom lzo/lz4 Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200
csiph-web