Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1390669 > unrolled thread

Re: [PATCH] mm/zswap: provide unique zpool name

Started bySergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
First post2016-04-29 02:30 +0200
Last post2016-04-29 02:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] mm/zswap: provide unique zpool name Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2016-04-29 02:30 +0200

#1390669 — Re: [PATCH] mm/zswap: provide unique zpool name

FromSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Date2016-04-29 02:30 +0200
SubjectRe: [PATCH] mm/zswap: provide unique zpool name
Message-ID<rt4tI-4Z3-9@gated-at.bofh.it>
On (04/28/16 05:13), Dan Streetman wrote:
> Instead of using "zswap" as the name for all zpools created, add
> an atomic counter and use "zswap%x" with the counter number for each
> zpool created, to provide a unique name for each new zpool.
> 
> As zsmalloc, one of the zpool implementations, requires/expects a
> unique name for each pool created, zswap should provide a unique name.
> The zsmalloc pool creation does not fail if a new pool with a
> conflicting name is created, unless CONFIG_ZSMALLOC_STAT is enabled;
> in that case, zsmalloc pool creation fails with -ENOMEM.  Then zswap
> will be unable to change its compressor parameter if its zpool is
> zsmalloc; it also will be unable to change its zpool parameter back
> to zsmalloc, if it has any existing old zpool using zsmalloc with
> page(s) in it.  Attempts to change the parameters will result in
> failure to create the zpool.  This changes zswap to provide a
> unique name for each zpool creation.
> 
> Fixes: f1c54846ee45 ("zswap: dynamic pool creation")
> Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
> Cc: Dan Streetman <dan.streetman@canonical.com>
> Signed-off-by: Dan Streetman <ddstreet@ieee.org>

Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>

	-ss

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web