The commit is pushed to "branch-rh9-5.14.0-162.6.1.vz9.18.x-ovz" and will 
appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-162.6.1.vz9.18.11
------>
commit 5f7174578922430580de420303b50a3fac88349b
Author: Nikolay Borisov <nikolay.bori...@virtuozzo.com>
Date:   Fri Jan 27 13:34:38 2023 +0200

    blk-cbt: Remove needless zeroing
    
    The per-cpu allocator guarantees the returned memory is going to be
    zeroed out so it's redundant to do our own zeroing when initializing
    cbt. Simply remove this code.
    
    Fixes: ea18c5e9d2ba ("cbt: introduce changed block tracking")
    
    Signed-off-by: Nikolay Borisov <nikolay.bori...@virtuozzo.com>
    Reviewed-by: Alexander Atanasov <alexander.atana...@virtuozzo.com>
---
 block/blk-cbt.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/block/blk-cbt.c b/block/blk-cbt.c
index c7cf7b0ae264..702a44e216e9 100644
--- a/block/blk-cbt.c
+++ b/block/blk-cbt.c
@@ -266,9 +266,6 @@ static struct cbt_info* do_cbt_alloc(struct request_queue 
*q, __u8 *uuid,
                                     loff_t size, loff_t blocksize)
 {
        struct cbt_info *cbt;
-       struct cbt_extent *ex;
-       int i;
-
 
        cbt = kzalloc(sizeof(*cbt), GFP_KERNEL);
        if (!cbt)
@@ -282,11 +279,6 @@ static struct cbt_info* do_cbt_alloc(struct request_queue 
*q, __u8 *uuid,
        if (!cbt->cache)
                goto err_cbt;
 
-       for_each_possible_cpu(i) {
-               ex = per_cpu_ptr(cbt->cache, i);
-               memset(ex, 0, sizeof (*ex));
-       }
-
        cbt->map = vmalloc(NR_PAGES(cbt->block_max) * sizeof(void*));
        if (!cbt->map)
                goto err_pcpu;
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to