Skip to content

zram: Replace bit spinlocks with a spinlock_t.

Sebastian Andrzej Siewior linux-block lkml 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 4 repliesApplied
  2. v33 patches 1 replySuperseded
  3. v23 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch3 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3zram: Replace bit spinlocks with a spinlock_t.drivers/block/zram/zram_drv.c drivers/block/zram/zram_drv.h+15 -40 replies
2/3zram: Remove ZRAM_LOCKdrivers/block/zram/zram_drv.c drivers/block/zram/zram_drv.h+3 -120 replies
3/3zram: Shrink zram_table_entry::flags.drivers/block/zram/zram_drv.c drivers/block/zram/zram_drv.h+3 -20 replies

Reviews trailers per patch

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

PatchSergey SenozhatskyJens Axboe
SeriesR-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] zram: Replace bit spinlocks with a spinlock_t.

Hi,

this is follow up to the previous posting, making the lock unconditionally. The original problem with bit spinlock is that it disabled preemption and the following operations (within the atomic section) perform operations that may sleep on PREEMPT_RT. Mike expressed that he would like to keep using zram on PREEMPT_RT.

v3…v4: https://lore.kernel.org/linux-block/[email protected]
- Inline lock init into zram_meta_alloc().

v2…v3 https://lore.kernel.org/all/[email protected]/
- Do "size_t index" within the for loop.

v1…v2: https://lore.kernel.org/all/[email protected]/:
- Add the spinlock_t unconditionally
- Remove ZRAM_LOCK since it has no user after the lock has been added.
- Make zram_table_entry::flags an integer so struct zram_table_entry does not gain additional weight.

Sebastian