[Devel] [PATCH RHEL7 COMMIT] fuse kio: initialize batch in pcs_map shrinker
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Oct 8 19:14:27 MSK 2018
The commit is pushed to "branch-rh7-3.10.0-862.14.4.vz7.72.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.14.4.vz7.72.4
------>
commit 902520831c2bd4e679b40a54e8d25a17661b1065
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date: Mon Oct 8 19:14:27 2018 +0300
fuse kio: initialize batch in pcs_map shrinker
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