lkml.org 
[lkml]   [2022]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/3] selftests/zram: Adapt the situation that /dev/zram0 is being used
From
Date
On 12/15/21 2:56 AM, Yang Xu wrote:
> On some linux distributions, if it used /dev/zram0 as default by zram-generate
> service, then this case will fail or report EBUSY.
>
> To fix this, use hot_add/hot_remove interface. Also, move module check code into
> zram_load from zram.sh. We can use /sys/class/zram-control to detect the
> module whether existed.
>
> After this patch, we still run case pass even /dev/zram0 is being used.
>
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
> ---
> tools/testing/selftests/zram/zram.sh | 16 +----
> tools/testing/selftests/zram/zram01.sh | 2 +-
> tools/testing/selftests/zram/zram_lib.sh | 75 ++++++++++++------------
> 3 files changed, 41 insertions(+), 52 deletions(-)
>

This patch looks good to me. A few checkpatch warns to fix and also
it probably depends on the other two patches in this series.

Please fix and send v2 for all 3 patches.

thanks,
-- Shuah

\
 
 \ /
  Last update: 2022-01-25 21:40    [W:0.106 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site