[Devel] [PATCH vz7] fuse kio: initialize batch in pcs_map shrinker
Kirill Tkhai
ktkhai at virtuozzo.com
Mon Oct 8 18:59:10 MSK 2018
On 08.10.2018 18:35, Konstantin Khorenko wrote:
> Shinker memory is allocated in process_pcs_init_reply() via kvmalloc()
> (thus not zeroed) and "batch" field not initialized later in
> pcs_mapset_init(), so fit it and initialize to default batch value.
>
> Fixes: 9623c8c78601 ("fuse kio: Add pcs engine combo v0.8")
> https://pmc.acronis.com/browse/VSTOR-15801
>
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
Reviewed-by: Kirill Tkhai <ktkhai at virtuozzo.com>
> ---
> fs/fuse/kio/pcs/pcs_cluster_core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/fuse/kio/pcs/pcs_cluster_core.c b/fs/fuse/kio/pcs/pcs_cluster_core.c
> index b99e01e5edfe..d1379c99ac6a 100644
> --- a/fs/fuse/kio/pcs/pcs_cluster_core.c
> +++ b/fs/fuse/kio/pcs/pcs_cluster_core.c
> @@ -51,6 +51,7 @@ static int pcs_mapset_init(struct pcs_map_set *maps)
> maps->shrinker.count_objects = pcs_map_shrink_count;
> maps->shrinker.scan_objects = pcs_map_shrink_scan;
> maps->shrinker.seeks = DEFAULT_SEEKS;
> + maps->shrinker.batch = 0; /* use default reclaim batch size */
> maps->shrinker.flags = SHRINKER_NUMA_AWARE;
> register_shrinker(&maps->shrinker);
>
>
More information about the Devel
mailing list