linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] zram: fixup "introduce writeback bio batching support"
       [not found] <20251117184414.CDFE9C19423@smtp.kernel.org>
@ 2025-11-18  2:19 ` Sergey Senozhatsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Senozhatsky @ 2025-11-18  2:19 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Minchan Kim, Yuwen Chen, Richard Chang, Brian Geffon,
	Fengyu Lian, linux-kernel, linux-mm, linux-block,
	Sergey Senozhatsky

Set slot index to current post-processing slot index.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
 drivers/block/zram/zram_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index bc268670f852..0a5f11e0c523 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -1015,6 +1015,7 @@ static int zram_writeback_slots(struct zram *zram,
 			}
 		}
 
+		index = pps->index;
 		zram_slot_lock(zram, index);
 		/*
 		 * scan_slots() sets ZRAM_PP_SLOT and relases slot lock, so
-- 
2.52.0.rc1.455.g30608eb744-goog



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

* [PATCH] zram: fixup "introduce writeback bio batching support"
       [not found] <20251118181235.4F5C4C2BCB5@smtp.kernel.org>
@ 2025-11-19  9:46 ` Sergey Senozhatsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Senozhatsky @ 2025-11-19  9:46 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Minchan Kim, Yuwen Chen, Richard Chang, Brian Geffon,
	Fengyu Lian, linux-kernel, linux-mm, linux-block,
	Sergey Senozhatsky

Dan Carpenter reported a missing NULL check.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
 drivers/block/zram/zram_drv.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index ea06f4d7b623..61b30c671a56 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -760,6 +760,9 @@ static void release_wb_req(struct zram_wb_req *req)
 
 static void release_wb_ctl(struct zram_wb_ctl *wb_ctl)
 {
+	if (!wb_ctl)
+		return;
+
 	/* We should never have inflight requests at this point */
 	WARN_ON(!list_empty(&wb_ctl->inflight_reqs));
 
-- 
2.52.0.rc1.455.g30608eb744-goog



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

end of thread, other threads:[~2025-11-19  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20251117184414.CDFE9C19423@smtp.kernel.org>
2025-11-18  2:19 ` [PATCH] zram: fixup "introduce writeback bio batching support" Sergey Senozhatsky
     [not found] <20251118181235.4F5C4C2BCB5@smtp.kernel.org>
2025-11-19  9:46 ` Sergey Senozhatsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox