linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] zram: Replace bit spinlocks with a spinlock_t.
@ 2024-06-20 15:28 Sebastian Andrzej Siewior
  2024-06-20 15:28 ` [PATCH v2 1/3] " Sebastian Andrzej Siewior
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Sebastian Andrzej Siewior @ 2024-06-20 15:28 UTC (permalink / raw)
  To: linux-block, linux-kernel
  Cc: Minchan Kim, Sergey Senozhatsky, Jens Axboe, Thomas Gleixner,
	Mike Galbraith

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.

v1…v2: https://lore.kernel.org/all/20240619150814.BRAvaziM@linutronix.de/:
  - 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


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

end of thread, other threads:[~2024-07-08  3:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-20 15:28 [PATCH v2 0/3] zram: Replace bit spinlocks with a spinlock_t Sebastian Andrzej Siewior
2024-06-20 15:28 ` [PATCH v2 1/3] " Sebastian Andrzej Siewior
2024-07-04 11:38   ` Alexander Lobakin
2024-07-04 12:19     ` Sebastian Andrzej Siewior
2024-07-05 12:02       ` Alexander Lobakin
2024-07-05 12:23         ` Sebastian Andrzej Siewior
2024-07-08  3:03         ` Sergey Senozhatsky
2024-07-08  3:32           ` Sergey Senozhatsky
2024-06-20 15:28 ` [PATCH v2 2/3] zram: Remove ZRAM_LOCK Sebastian Andrzej Siewior
2024-06-20 15:28 ` [PATCH v2 3/3] zram: Shrink zram_table_entry::flags Sebastian Andrzej Siewior
2024-07-04  9:39 ` [PATCH v2 0/3] zram: Replace bit spinlocks with a spinlock_t Sergey Senozhatsky

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).