Re: [PATCH v3 10/11] zram: use rw_semaphore for decompression streams

From: Sergey Senozhatsky

Date: Wed Oct 14 2026 - 22:12:56 EST


On (26/10/15 10:41), Sergey Senozhatsky wrote:
[..]
> + if (zcomp_shared_decomp(comp)) {
> + struct page *pages[2];
> + unsigned int flags;
> +
> + pages[0] = sg_page(sg);
> + pages[1] = sg_page(sg_next(sg));
> +
> + flags = memalloc_noreclaim_save();
^^^
memalloc noio

> + src = vm_map_ram(pages, 2, NUMA_NO_NODE);
> + memalloc_noreclaim_restore(flags);
^^^
memalloc noio