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 E69648017D for ; Wed, 18 Nov 2026 13:12:35 +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 6AIDBImf025531; Wed, 18 Nov 2026 16:11:20 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AIDBImf025531 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="RUOPDZ9o" Received: from mail-yw1-f198.google.com (mail-yw1-f198.google.com [209.85.128.198]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AIDBFAK025517 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 18 Nov 2026 16:11:16 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AIDBFAK025517 Received: by mail-yw1-f198.google.com with SMTP id 00721157ae682-869553205a7so12838777b3.1 for ; Wed, 18 Nov 2026 05:11:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AL+hErGaL/7Zp2oEySPVr8RkfP/V1PhkJTihqq5uIvegYlZ34pFxXzXDRpDr514wwsDbByxaRq1EVA==@openvz.org X-Gm-Message-State: APuU4Z8zGs3Sf9ixDI1lFc/MLZG2pRNF7aEWZWRFftXorPWNunDdX0pn XVcw2GxdisCt1S+EqzVe1g9KO3g0V0J9Uh9umMebeEU5uYq9gBQqWsNwntQ2w5TERFb/2+fblXX 7IhdMfnYyJF2xJKHkWARS6RlB89CpRTI5uXK087LkBdlJ1NP+n1kxng== X-Gm-Gg: AZFdTZfxOQNLAXPAlE3ODfzRb5eVa1dqCK+tt9wJiJfZclGgeTEUNnvs9j7Asp2NPm7 xdem6VhK+DKMNuxKVSEkKPpm0BBfDs2U5JuEGn35zFZxkO7UrUzrH83GQz0fI3rffoEuN5SdpBZ T19QvheuU1v1i2oTDVYlhOA176GBw80qxhzi7Tm9g69jeqvqkTOkMFP3l6DJiQ7iizIy+llIwLe xWmXJDrRY8J9jCXao7LLX4/KpmRStPbHKgxg9dYY20ABPbg4U81RpUG2msll1tfsse0YzUuxbni +SXVuFzoBQRbot9PqSxEItSq6PA3OvEVFQMJPj9xZviDJYBeShH79q1+yo9UiFkc5S26qDvouaL RdnungLrf0qup7lkay2bJr2CWMhYYtxZd7JlchNm/PWlq0IEkrPVnYPV7Vxb7NsV/L/SNkfFX+z JuvuVFRbDPlMEHyVgh1+iOiljd0wj4S6I+ X-Received: by 2002:a05:690c:a40a:10b0:8b5:61d:f3ff with SMTP id 00721157ae682-8b5061df727mr4191997b3.46.1795007474704; Wed, 18 Nov 2026 05:11:14 -0800 (PST) X-Received: by 2002:a05:690c:a40a:10b0:8b5:61d:f3ff with SMTP id 00721157ae682-8b5061df727mr4191847b3.46.1795007474063; Wed, 18 Nov 2026 05:11:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1795007474; cv=pass; d=google.com; s=arc-20260327; b=g5QlDqzN34/RUjD++Bzf1MNnQ7NXcjh9vs9fnGrUvpKj1IdlfmpYSyTnDZVk/lSG8W ToJhujQPU+SjkkpJMDHzJxYI1Fsjj+oa9POk87aREB7Eb7F67cBTF0K1Ydl+BquND07m 8iy8u6WiYWtCb+QbU5PLmNDeHadDExJMUl/tnU+fycSW5O4kVmV66EAQccMS67hqagJz BkCe5M8DAelR7e7E74CFp4XKEqe46OZPfCFp55jQcLF/LhxZMBA1FjC3fTz9CzFxjSWT NjeIdDCZq/9p1cc8XohDZN8a05hqB/yj6f65G2dz1+YgR7aMm75EgNsXHZ9SEfTyWVIG GIRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=mime-version:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=fUHC0bKRoc9L4S1QxktYWUUD//XVsvauMo+tznVl7LE=; fh=NQShvAamTRhKeEdBP+VGPvHYs3WDIRdtFLGEhdoHFRg=; b=iROUhwm4Y6r/hN/gFcxvh3LAW9I28O2wXLhfcIyoVIqouBbnEEG2Rmnb/0wuwh5TiV riF14rzQQfg66DANnaBkg5S3dqxq5h4KqgvGEcCA5+9IO3j1ghDp4nmIga2x8pEqnM7M s+cQ/Q/wVEvu3J2RwvWIadbRdfhjOn8b6M7I2wtSgZTQ9pLUG3ChTtnOhMsLRJuMsh1N Rtnu7ut0IAvLxc6n2NYY2UDij/zAN6ZnxkwRtGXLfnk/hUkrzL06dXA5iWimdDCNS6/Q q5h2hTpo+4LSo4BTSx4ggIZh7MQE9ZS/KxPdAS3ZGkd/NVtDTwqC54IdVoL9d5xsFXm2 impw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=RUOPDZ9o; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: domain of andrey.zhadchenko@virtuozzo.com designates 2a01:111:f403:c201::3 as permitted sender) smtp.mailfrom=andrey.zhadchenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazlp170110003.outbound.protection.outlook.com. [2a01:111:f403:c201::3]) by mx.google.com with ESMTPS id 00721157ae682-8b4fe06c0e9si10960137b3.38.2026.11.18.05.11.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 05:11:13 -0800 (PST) Received-SPF: pass (google.com: domain of andrey.zhadchenko@virtuozzo.com designates 2a01:111:f403:c201::3 as permitted sender) client-ip=2a01:111:f403:c201::3; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=RUOPDZ9o; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: domain of andrey.zhadchenko@virtuozzo.com designates 2a01:111:f403:c201::3 as permitted sender) smtp.mailfrom=andrey.zhadchenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ifgf9dO+sD/JbT80Yh3yyXk7af2sh7Qg/co+JR0nlzSdmQJjIxJA3qSF6Eh7+fqZ9b/vzpxwE4MoK2iW+xC80FvT+f5OtlBmah8uCcg0g0M4Nr/T9nGdNo1C9vHn3SS5vBDXLxpt+Xx5FyUi+90aL+7cU5x8k2OJI+hSVIGYANOQc/1euPXb3ujYdxGNPvkCgGMxYiT/rzcbsDpNK3ZFGhoL/usCkZdVeHGcu1GSgp148uYhrfejRd4mmYXyqVrGvY0pfk5Q+okHOQjJyPCH0Xsn2Nka2D3WfEYIX4Q6qq14QjsgFgSntTrNaLmFZZBbaXfXJ7A0KxguCRL0ZonK0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fUHC0bKRoc9L4S1QxktYWUUD//XVsvauMo+tznVl7LE=; b=ySWdJuIP2ofLXkMp9tfDVPHetvk6hsFTd2sdiKsiyVW6cWWbgIwy8MFXmzAU4jyx3XZe/h1i2ov0LIlqZua8kInr1ZiisVCSLbaMFt/5C6N70SNOkIquNKVunofNpNBs00limfZsD3aR8pFmlIoFYW50Rqn0TS6Bx+E/AOfjytkch6DAIbKRVuzRq2aPtdQbW3k341qpEAnZ845EX3Zp7/fRSDEjbufX03IU8sEGjqrT2hFHAuuOCvyIWBPVU92syj5WLFyjc2lms9rlSAPA15E+xBytxD7r0QPpP8vEd2Sz0pdrPIOrVBu11Kaac7WATjtLdGdrOyRsnGuzHNWSIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fUHC0bKRoc9L4S1QxktYWUUD//XVsvauMo+tznVl7LE=; b=RUOPDZ9oGon8KdzsMzpR3PmO4A4XN9D3VKjO494mJylAziVJfDIseZruw4P4LBdpGaqua+NiT4jd0quKV05YLZaA5ObW1kQQd6hAgEM2f73KPhLN12isu2epXVqjuYEm9dxdjT1oJbLyceXnTt1hoEKbRWIIa64eXTkxc1WFxZeIx8LXLSnkrbWcpBzlX9jmzTjQH8CpxehUsT7uNQrt+VjWE3vJfbdNdHmVpvq58RUnzBtCdhKHKPrGz3jsotYxm1VDqJZvCSzFT2CRnrS9BGXejTDx9xWzWAMfjpiiwuKLh5Rwx8A6Ioyy42VpaPEzRYgq5zn5JDxcT58CZCkQrA== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=virtuozzo.com; Received: from PA4PR08MB6061.eurprd08.prod.outlook.com (2603:10a6:102:e9::13) by AMCPR08MB11993.eurprd08.prod.outlook.com (2603:10a6:20b:770::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Wed, 18 Nov 2026 13:11:11 +0000 Received: from PA4PR08MB6061.eurprd08.prod.outlook.com ([fe80::c3bf:e107:b1d2:6a00]) by PA4PR08MB6061.eurprd08.prod.outlook.com ([fe80::c3bf:e107:b1d2:6a00%4]) with mapi id 15.21.0615.013; Wed, 18 Nov 2026 13:11:11 +0000 Message-ID: <5d95db6a-733e-43b0-babb-27fa01a75b05@virtuozzo.com> Date: Wed, 18 Nov 2026 14:11:09 +0100 User-Agent: Mozilla Thunderbird To: Alexander Ivanov References: <20261118131032.3372996-1-alexander.ivanov@virtuozzo.com> Content-Language: en-US From: Andrey Zhadchenko In-Reply-To: <20261118131032.3372996-1-alexander.ivanov@virtuozzo.com> X-ClientProxiedBy: FR0P281CA0104.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::15) To PA4PR08MB6061.eurprd08.prod.outlook.com (2603:10a6:102:e9::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR08MB6061:EE_|AMCPR08MB11993:EE_ X-MS-Office365-Filtering-Correlation-Id: 653fbd00-b1d0-4f23-29cf-08df45756a57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|23010399003|1800799024|366016|376014|261102123227099003|261026140227099003|261026121527099003|261028144727099003|261022075727099003|261021123027099003|261021121427099003|261022115727099003|261022105027099003|56012099006|10067099003|22082099003|18002099003|261009221227099003|261009223027099003|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: Ms9fZ5tMDMVLWZVEk9QY8gmgwYjLH9JuHRkSqz+gflIFXKh+ObWfaqfHIk788xYTGg8/FcIHkkaaPJTnsctDrgxtBuYjtBV/XuKEC6Dbu47X8YMRjmh8hcHxVolEc/BLGGFtfJ5O846oT+seEShPa8KsGquL04Yz6XYUud0GecDpG8mwZYJ9Rp+7/UXKz3R87lhZ8wrJc1aXE6V8lNdoxOFjXUWrrvO912kvLsFHRVxd/vYHMXZdHBVZgVMl2fByj2tOt1iu08iBx2HjPpl2UkOj4rrKm9kugtuzTgLIUdfAPYw3i9b26I4gCZ8l5h5cpN84DgGi1Jiak+Qgz9E0DtdNw6IfxY53Ft2SgQSdl8IJjg8iNs0wzqfE7dV/QDIOyL1bY792WsWX3I8A4r1bvyxcE5cU8KIvjnFmXhqvr1K9mpLxVTB03oow9vq1fGgB2RwSEiSKZGQCQ8jjdf26W6W7JVXy32J2v+AELNTFz4zZ3yZRJWF+Tdyljg3eaLgLwipLi0Nko+Xv8Fe9e3RJgxYG/H1fMnqb6BGpPiry4sKlWbrCiUvscn8UEG4huFvGxcIq62HlnqzfdnGUGreNLhXDQS8gS23hlGEumCQz3yEotD7Z28gdG9+Yo+XZKenx X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PA4PR08MB6061.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(23010399003)(1800799024)(366016)(376014)(261102123227099003)(261026140227099003)(261026121527099003)(261028144727099003)(261022075727099003)(261021123027099003)(261021121427099003)(261022115727099003)(261022105027099003)(56012099006)(10067099003)(22082099003)(18002099003)(261009221227099003)(261009223027099003)(6133799003)(3023799007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MXNWbThzL29TMThURkVFalMydmpkUklsNVdSajBUTkJ4VWZoMXo4MTladGZh?= =?utf-8?B?MlEwOWo1YUZBZlpzNkk5cnl1SWxGRVo0SVoyM0dXMW1YM1pncjl1V0xCN0V0?= =?utf-8?B?VVFxZ0JjOXlEalhnR2R0ZVpWYTV0MDBDNVlRemFsdU0reHZxbzNhTEY3RzJ1?= =?utf-8?B?dXhzdWtnUGRISjlZTEl6eFFoNnZRWGNGeXFPeWdnS1N1ZHBIM08rejE3QTNh?= =?utf-8?B?K2hSUmJIbHBwb1hwN1pHL2dDU0UvbmNJMGtBWWpJeTNLSXorNmRWditkTjVZ?= =?utf-8?B?NFdUM0w2Vjg4eWVKbVRoT0VhdktXZmsvK0N1K1FuOElkN2s0UEVEZVM2RlNG?= =?utf-8?B?Tkc1Y2x4aUk3c1NLcVNYWH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zh0RUdhQzF6N3h3UzY4N2lDUWFKMnM0R0F3cy9LVG5OVU1l?= =?utf-8?B?blg4OUJYSWgwYTZnMjlacVMzdk9XTGNnOVVlRm1TbGJNTytTSDlqa2JIRmRw?= =?utf-8?B?eHdKeDR0NEZpN1IyVXJiUGtqdGRzT0ZMcDNhWHV1T1NPTWg1OGp4OVF1a3hG?= =?utf-8?Q?UFrtvX/bIgPFm5N4=3D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 653fbd00-b1d0-4f23-29cf-08df45756a57 X-MS-Exchange-CrossTenant-AuthSource: PA4PR08MB6061.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2026 13:11:10.9365 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QOZTRsuXIffbjwmnvxTjq1nERM5lc0iwG/TFCiHxf6QbjvsOGU83GAgkCGxOY9SFdaElFm2UXi926Wof+mM6WdiKGXtNprPdXdGapDSTstg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMCPR08MB11993 X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [Devel] [PATCH hci-8.2 v8 0/9] dm-ploop: give back unused tail of top delta on suspend 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org Reviewed-by: Andrey Zhadchenko On 11/18/26 14:10, Alexander Ivanov wrote: > Preallocated space and clusters at the end of the top delta freed by > discard are never given back, so the image file never shrinks. The > last patch truncates the top delta to the end of its last used cluster > on suspend. > > The next resumed ploop must see the new file size, so the previous > patch reloads all the metadata (header, BAT, file sizes) on resume. > This also fixes "dmsetup reload", after which the new ploop worked with > metadata read in ploop_ctr() while the old one kept changing images. > > Patches 1-3 fix header validation, which the reload would otherwise > hit. Patches 4-6 prepare the reload and fix races on md pages and > inflight_md that the new waits on suspend expose. Patch 7 fixes > flip_upper_deltas racing with resume in ploop_preresume(), where the > reload goes. > > The corresponding ploop userspace changes: > https://bitbucket.org/openvz/ploop.ovz/pull-requests/486 > > https://virtuozzo.atlassian.net/browse/VSTOR-148171 > > v8: > - Add Fixes tags to patches 1-3 and 5-7. > - Patch 3: drop the wrong hash of the driver commit from the message, > it is in the Fixes tag now. > - Drop patch 6 ("dm-ploop: use wake_up() for inflight_md_wq"): patch 6 > (was 7) replaces these wakeups with wake_up_locked(), which wakes > uninterruptible waiters too. > - Patch 6 (was 7): only ploop_destroy() takes inflight_md_wq.lock after > the wait, leave the wait in ploop_resize() as is. > - Patch 8 (was 9): > - keep the waits for preallocation and BAT writeback in postsuspend > uninterruptible and skip both in standby; drop > ploop_wait_prealloc(); > - drop pending prealloc requests while suspended (prealloc_stopped), > so after a skipped wait the old allocator doesn't resize the top > delta under a ploop of a reloaded table; > - wait for BAT writeback in preresume too, as a resize of the > suspended device may leave it in flight; > - keep dirty metadata on resume without WARN_ON_ONCE(); > - drop the stale comment that ploop_preallocate_cluster() is the only > place to change file_size. > - Patch 9 (was 10): take ctl_rwsem after the waits, so a stuck top > delta doesn't block status and messages; skip the truncation without > WARN_ON_ONCE() if md pages are dirty; describe the truncation on > removal of a live device and the best-effort size check in the > message. > > v7: > - Rebase on the current hci-8.1. > - Drop patch 1, it is merged as 932bd3ae4705 ("dm-ploop: fix u32 > overflow of the delta BAT byte size"). > - Drop patch 2, the same lost wakeup is fixed by 50651c191a31 > ("dm-ploop: fix a lost wakeup of the ploop_allocator() thread"). > - Patch 6 (was 8): drop the dispatcher_wq_prealloc part, a5836033b8fe > ("dm-ploop: wait for the ploop_allocator() thread before changing > deltas[]") already wakes it with wake_up(). > - Patch 7 (was 9): keep the wait for preallocation that a5836033b8fe > added to ploop_suspend_submitting_pios() after the inflight_md one. > - Patch 8 (was 10): add the missing Jira link, Feature and > Signed-off-by. > - Patch 9 (was 11): ploop_postsuspend() already waits for > preallocation since a5836033b8fe; make that wait killable and skip > it in standby instead of adding a new one. > > v6: > - Patch 10: new. Clear ->suspended in ploop_preresume() under the same > ctl_rwsem as the noresume check, so that flip_upper_deltas can't > pass its check between them. > - Patch 11 (was 10): rebase on patch 10; mark a new ploop suspended in > ploop_ctr(), as it is not live until the first successful resume. > - Patch 12 (was 11): fsync the top delta before the truncation, as BAT > writeback finished after ploop_presuspend() is not durable yet; drop > ploop_set_suspended(), which is unused now. > > v5: > - Patch 9: in ploop_destroy(), wait for inflight_md with wait_event() > and then take and drop inflight_md_wq.lock to wait for > ploop_dec_inflight_md() to release it, instead of waiting with > wait_event_lock_irq() under the lock. Reword the comment of > ploop_dec_inflight_md() and the commit message accordingly. > > v4: > - Patch 1: was sent separately as "[PATCH hci-8.1] dm-ploop: fix u32 > overflow of the delta BAT byte size", unchanged. > - Patch 2 (was 1): drop the comment above set_current_state(), add > Reviewed-by. > - Patches 3, 4: new. Reject a top delta header whose BAT does not > cover the target, and reject empty deltas, instead of skipping the > mappings of an empty delta in patch 5. > - Patch 5 (was 2): say that raw deltas have never worked since the > driver was added; drop the empty delta handling, see patches 3, 4; > add Reviewed-by. > - Patch 6 (was 3): fix the stale comment of ploop_add_delta() about > the order deltas are added in. > - Patches 7, 8: split from patch 10. Patch 7 takes bat_lock around md > page lookup in ploop_llseek_hole() to protect it from resize, so > llseek doesn't wait for long control commands. > - Patch 9: new, fixes a use-after-free of the ploop on the last > inflight_md decrement from BAT write completion. > - Patch 10 (was 4): > - test MD_* flags with test_bit(), they are bit numbers; > - keep the in-memory m_DiskInUse only after flip_upper_deltas, take > it from disk otherwise, so the CBT written on umount isn't lost; > - don't wait for preallocation on postsuspend in standby, and make > the wait killable; skip the reload and prealloc on resume in > standby or while preallocation is pending; > - track standby per ploop, as ploop_ctr() of a new table clears the > queue bit before the old table is suspended; > - drop ctl_rwsem and the suspended check from ploop_llseek_hole(): > dm core doesn't call it on a suspended device; > - describe the new preresume failures in the commit message. > - Patch 11 (was 5): don't truncate in standby, if the wait for > preallocation was killed, or if the file size differs from > top->file_size, i.e. another ploop writes to the top delta. > Shorten the comments of ploop_calc_used_end(), which repeated the > commit message. > > v3: > - Split from the common series with dm-qcow2: dm-qcow2 patches are > sent as a separate series. Patches 3-6 of v2 are patches 2-5 now. > - Patch 1: new patch. > - Patch 2: also skip applying the mappings of an empty delta, as BAT > iterators can't handle nr_be == 0. > - Patch 4: wait for inflight_md on postsuspend, as data bios are > completed before BAT writeback is finished, and use wake_up() for > inflight_md_wq; reload metadata under memalloc_noio_save(), as the > device is suspended; restore m_Sig, m_Type and m_Sectors on reload > failure. > - Patch 5: don't truncate anything if m_FormatExtensionOffset is not > cluster-aligned or out of range; truncate under memalloc_noio_save(). > > v2: > - Add dm-ploop support (patches 3-6), as requested in v1 review. > - dm-qcow2: move get_md_page_sync() to a separate patch as > qcow2_md_page_read_sync() and use it in qcow2_parse_header() as well. > - dm-qcow2: start the refcount scan below file_preallocated_area_start > instead of the end of the file, and truncate to the used end directly > instead of min(file_preallocated_area_start, used end). > > Alexander Ivanov (9): > dm-ploop: reject a delta header whose BAT does not cover the target > dm-ploop: reject empty deltas > dm-ploop: set delta is_raw before applying its mappings > dm-ploop: factor out ploop_read_delta() from ploop_add_delta() > dm-ploop: take bat_lock around md page lookup in ploop_llseek_hole() > dm-ploop: fix use-after-free on the last inflight_md decrement > dm-ploop: fix flip_upper_deltas racing with resume > dm-ploop: reload metadata on resume > dm-ploop: truncate unused tail of top delta on suspend > > drivers/md/dm-ploop-bat.c | 255 +++++++++++++++++++++++++++++++++-- > drivers/md/dm-ploop-cmd.c | 1 + > drivers/md/dm-ploop-map.c | 31 ++++- > drivers/md/dm-ploop-target.c | 179 +++++++++++++++++++----- > drivers/md/dm-ploop.h | 16 ++- > 5 files changed, 425 insertions(+), 57 deletions(-) > _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel