Skip to contentSkip to conversation

zram-add-might_sleep-to-zcomp-api.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 17, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: zram: add might_sleep to zcomp API
has been removed from the -mm tree. Its filename was
zram-add-might_sleep-to-zcomp-api.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Sergey Senozhatsky <[email protected]>
Subject: zram: add might_sleep to zcomp API
Date: Mon, 3 Mar 2025 11:03:28 +0900

Explicitly state that zcomp compress/decompress must be called from non-atomic context.

---

 drivers/block/zram/zcomp.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/block/zram/zcomp.c renamed from drivers/block/zram/zcomp.c~zram-add-might_sleep-to-zcomp-api +2 -0
@@ -146,6 +146,7 @@ int zcomp_compress(struct zcomp *comp, s
 	};
 	int ret;
 
+	might_sleep();
 	ret = comp->ops->compress(comp->params, &zstrm->ctx, &req);
 	if (!ret)
 		*dst_len = req.dst_len;
@@ -162,6 +163,7 @@ int zcomp_decompress(struct zcomp *comp,
 		.dst_len = PAGE_SIZE,
 	};
 
+	might_sleep();
 	return comp->ops->decompress(comp->params, &zstrm->ctx, &req);
 }
 

_

Patches currently in -mm which might be from [email protected] are