From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 84D6E80031 for ; Wed, 25 Nov 2026 11:49:15 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6APBm0hG015483; Wed, 25 Nov 2026 14:48:01 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6APBm0hG015483 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="pYX5luYP" Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6APBltue015465 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 25 Nov 2026 14:47:55 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6APBltue015465 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-6ba65981447so4554453a12.3 for ; Wed, 25 Nov 2026 03:47:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErGNxqkFEEvneODfokuaaA87gTai7g5isdD/+NpUvxnkm8qY44xlflGgtPizQTisoa3RGNGUfw==@openvz.org X-Gm-Message-State: APuU4Z/NcfrsJHpbAnXsOYXdAKeycOIwibafR999bCUP0mqlCqUybP7Y hJPAf8uZjZ9sggMjkspZ6eezj47INql953NTJvO6IybGQwwN1kHsJHWuD6/VVshvawZ9AtO/IxO DE/SWeuI+9UfatPazoB/pam+mEwb72mYdSfbwJPjiJfiFI4beKLJv1w== X-Gm-Gg: AZFdTZdjQpps+ZWOExu8OklB93hWTnc17eI9cRudX2P2sgMzQj9UZc4RzwidO7+zcad NI19zGcbS2FThBp+aEOGjWS9oQRDnTEcO9mRTO2BcNeX1mKAH8mHZM4tcBPfE+YzuJQ7f4qXzl1 1HiqgHTBY2jPEGSGy9+P9yHikcHSx81MIZwy8AnM4uzkkzGiBTh48nIiJo8yt89QHv9po4/X+yD PdG/No6OInrTvZjOmUDb61WaclGdQ1Tm8Gu2FVMEJWHbmkhLXqCXwaAZFlsaHo1IzVwW4UhXngV 6e9TW0lNMDRXzSwlwrgHYACHYBgmcbLXDCc6kam/ft7JY4KwWR5lOstnpjwYdvyr3TLsUzLDQUH vlohmTRm2hMvyGNlR X-Received: by 2002:a05:6402:c4cb:10b0:6ba:eaba:965d with SMTP id 4fb4d7f45d1cf-6baeaba9752mr3305984a12.3.1795607275064; Wed, 25 Nov 2026 03:47:55 -0800 (PST) X-Received: by 2002:a05:6402:c4cb:10b0:6ba:eaba:965d with SMTP id 4fb4d7f45d1cf-6baeaba9752mr3305947a12.3.1795607274392; Wed, 25 Nov 2026 03:47:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795607274; cv=none; d=google.com; s=arc-20260327; b=dHxM6GRyamQ6aIue3Eb1AgWXXK0PvjIsolDWagpm7UomCIduwSoLfXjWjkBOMbMO43 oiiQaNv4sOqSqH58vX5lp8YvnwZ2uTzGNl7Mx6mglWHGPQSrLJq1WosDj2DF55JVq5PA FoubZYxN12bQ5s0jX87c25Yb4ndsJO1J8CuamYIBwkx3nZAx/iVy0QN6ikJWw3vfZe0I bhkYfx3JaaCdND5g91EdU/QD/FM/cEbY7fKRmicWrIyjxGXnPWruqKzwDhQ8l6MVogR3 ZUWXIXgI1e/xeZ6sRZ2+DuAJFs40ZbxUD2if1fVXXjh+rzO0aINrEClUBIjjwC/fq9li pJFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:mime-version:dkim-signature; bh=+bYC3VaZZhLEPxA4Go6VEl3xacHhhoj/T43BeGZG4lc=; fh=CqrZZOXapcO6WAsXjNrjTQSj9fEMNwVnBtmWk5wPJKU=; b=TmlyHJ64C4JoN0yE9eVQZ5RgvhslzTq3iUhUuPIkmgx1/+w1RsE3rBBoJehRAuQMEw ljb5ncpA6X+6tZOdoBGEGO394zNyR/wjMs86+kIQ+iz3eNaRo61UcXmonyjRGvZ8tWZ6 2nOgO/UapDT73zpbBkbmbRaZpourxXuRdu7RdXMBNZxWjyLznHOQt1E7dug+7CuXQCSG 0zjT2RPtF0yQfEEsEZqbIpMlF5Ut+ii+fJyJzwhBblkn6gQc5cbd+AhnA/W0Ga+1af3E Xy9RP/tlGGHZ/OinrOi0IR7oUnIsxsyNSBzFMMktqZZlPEtFVcV65fyFnkio40RbItT4 fS6w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=pYX5luYP; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-6ba903e978asi9480357a12.233.2026.11.25.03.47.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 03:47:54 -0800 (PST) Received-SPF: pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=pYX5luYP; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Message-Id:Date:From:Subject:Content-Type: MIME-Version; bh=+bYC3VaZZhLEPxA4Go6VEl3xacHhhoj/T43BeGZG4lc=; b=pYX5luYPsQEo +h/6C9Pwpg4WtsPQWbuKHRK9G4ugkG3GBsEySIaBZC8d5YqlzQFln1YOFqWDpHwHhie8y7SQu8dFO n5Iq0bpg1eifYh8ktyEFmANeVbODbeWdLmHuNXVNWzCmLgTkJl2ROpueNZ5arwDQnfgfFLasSWOOs 2fM599B8Xs0C3ZBzxlgemp9XdFb5Vg5y1F/VxFTCLgHcVKwMvWCQAZ4ZdcwmMsHJToM6hzp3kV+ig c83BFMzjxBkQuF4dmixGuV/y2p/UdMmRGdFGBHmo3ep2MLKsd8Z6ok4Icf5EMOLXg+BEW6fQLS3U/ L7qrf8q1Ply2Aq1F5BYyRw==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=f0.sw.ru) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xWBTS-008SgF-2Y; Wed, 25 Nov 2026 12:47:53 +0100 MIME-Version: 1.0 From: Konstantin Khorenko To: Vasileios Almpanis In-Reply-To: <20261125-push-backup-fixes-v1-2-8d5cc55c30a1@virtuozzo.com> References: <20261125-push-backup-fixes-v1-0-8d5cc55c30a1@virtuozzo.com> <20261125-push-backup-fixes-v1-2-8d5cc55c30a1@virtuozzo.com> Date: Wed, 25 Nov 2026 12:47:50 +0100 Message-Id: <179560727089.30071.5952505622071343801.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1377; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=ohaTA4qPoWo/7DsdT0uNeDqNKJSaVST8+u2HEPE0Mj4=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBrBsrn7m7xd0u8vC5qwASiuVW0lrbqMyeEX480t quKpNKfvKGJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCawbK5wAKCRBRlgpH+WFc Ko7eD/wLMIG/yiVThI1ei8V1176UhlrGFtjqVd4ENZ9g+HAM/var19cgbRxGAIPIF1W0pvb8wDX aQ+f1u1QToJ611Gf8ObiFflOXnIQ/aV9/DzBPwzaVOt1A1f45TiPWvG1PMhFLFc1V2ohZmpFp4B sMqQG5nOebXLKTiEopaQJZafpXvFf3L0Asfutk/F++GmTwfauRNj2ZeItGQcdOKaIMl78Nq5tMe WYWCP+IU6FdNIVUZzXTasSszN2WDJ3ZSY5MwRvCODnYN5KJJMCZAm4/LDskGVImuo1eaTNVOwS3 rcXaoGl8C6DJD3ykYmg1h9qqjD1sgSpNVc7xohGf0qAoxGC2FK45HQOrCpqw6vi9hQw2EiNp9Jz 77sQ5cwH3+zNs4qrKg9o3aOTwJLzL/3hdoONfRRRXQSd1WkXAWEqigbPRUjYsPqf2OQuOpP9FV3 HLL/cPsQwGKS7jD2cBtiQ0+D1/JS6zz4eqlNbNkbV4pjWE1h+3rpg/bcI/6LKRIvolASIEFF4rf 5bYcBvs+gT06cfKp4dbQALoPiq1TityKVTL1ZDwgMBFXTzg36jRKbDfPtqa8WfZG0NhfeLKj0sB oxJk6mBhDyeg5LIscU+BgyJ2fA/XCi2dx6XQmhS/uCSotqEIma5HzfqWivxn4nsmxc3EPmjWv0Z UhemN2U6lZv2vtQ== X-Developer-Key: i=khorenko@virtuozzo.com; a=openpgp; fpr=560F6DC83DC5D3D063BD082C51960A47F9615C2A X-OZ-Fwd: true Cc: devel@openvz.org, Den Lunev Subject: Re: [Devel] [PATCH hci-8.2 2/3] dm/push_backup: free the bitmaps of an expired session on restart X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org I won't apply this version, please send v2 with the changes below. - The old bitmaps are never freed, not "lost until the target is destroyed": item 5 of the cover letter reply. - Drop the 32 GiB example. - Narrow the last sentence: a failed start still changes the timeout. On Wed, 25 Nov 2026 11:29:52 +0000, Vasileios Almpanis wrote: > bitmaps are lost until the target is destroyed, because only > push_backup_stop() and pb_destroy() free them, and they see only the > current pointers. pb_destroy() frees only the current pointers, so the old bitmaps are never freed; the sentence contradicts itself. > Each bitmap takes one bit per cluster. For example, on a 32 GiB device > with a cluster size of 1 sector each bitmap is 8 MiB, so every restart The first sentence already says what the leak scales with; ploop sets up the target with the image's cluster size, so the 1-sector example overstates it. > dropped. If setting up the new session fails, the expired session > keeps its bitmaps and its expired state. setup_pb() writes timeout_in_jiffies and deadline_jiffies before the allocations, so after a failed start the status shows the expired session with the timeout of the failed one. Either move the two stores under pb->lock with the swap, or say "keeps its bitmaps". -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel