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 496E2803BB for ; Wed, 18 Nov 2026 12:48:57 +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 6AIClWT3024909; Wed, 18 Nov 2026 15:47:34 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AIClWT3024909 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="lR9UsNq0" Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AIClTFJ024905 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 18 Nov 2026 15:47:30 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AIClTFJ024905 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-49337a224a8so661863f8f.3 for ; Wed, 18 Nov 2026 04:47:30 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErEhZ76Mr5q8kfUimanJCzQ5dOnfW9l1AM4p8T525P/tJc4gcCsMtTaf98j0QtR6U6Kj+Fe2vQ==@openvz.org X-Gm-Message-State: APuU4Z9sr3GgNxnfRvZJT7cVf8jZab3Cfbq1PAlslHSJzeXAuT+z3ssA oqGVnEVEM34TAIR879SvQZ/k/m601QRyVMHhn2v+c2dyBio1QrX1R5jYJsL+Xmx3IJTctjHYlH6 FNZDWJuHoSBpRS8pOY6uA9AZHShtCCtrWIEVd+I5t7OaGjPYVnUZmYA== X-Gm-Gg: AZFdTZcICL8MDiXy0BMdzFoA/KJs5WBLSzlfLiUDJs1FrQNktczMqnSubemJKk6GqNS mJ9VNn7YqYqi+yCskjEyRmCL732/1hyhTPo4VK2Md7pCES36rjCWM4Fddmi3kRwBjjJMQyBB4cH LXDds9gdLpmfuqIAKPOZuilX3ANY/Hsg5pw6ytdLlzxDo9fYPPyzn+NZ+sk6W0qOz1LopLzbo4e qo8DxtYvBCP0u1SyCcz28IM1MyQ5ZhiWj2ng3zP0321DpqaYz4YoG6hlrYzTga1Ih4Yz3tia6YR aOt6/+ZZ+qHMn+L0mhvxuvIdjsBl7TezaRfYiVy6cPrYTKsXYjfWn51sHVisIrX+YZSthDlNnyj EYeBpCyy/e/XlsOaT X-Received: by 2002:a05:6000:1607:b0:49e:da28:4d40 with SMTP id ffacd0b85a97d-4a63ae56b8amr3914969f8f.19.1795006049310; Wed, 18 Nov 2026 04:47:29 -0800 (PST) X-Received: by 2002:a05:6000:1607:b0:49e:da28:4d40 with SMTP id ffacd0b85a97d-4a63ae56b8amr3914934f8f.19.1795006048814; Wed, 18 Nov 2026 04:47:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795006048; cv=none; d=google.com; s=arc-20260327; b=bZFDt88f3WW/pFKt5SfP1HkPetIgj64lMVZcbMEFb5N0oxSMH1ypDCFr5uiqzmeT5H /DtccIu/P+v/DkyIKECTbKmsohmmstcjr3cK0ONTek11cUA473Sx0J3Z9RLIoANoUjxw BTmUeDri37b34YmjiSR597NLSJB+uN1175ROG5kTvQc1bFmmR/kh+ZSy+2vGhtoS9Ltc AklEdEE3No6VBtgU2g21TyGMxn2QyEMgw6QIaw1MQQ4FNLq16+VaGal8UzqM/AYK4yLa 3fkszH9HksRNe0KvX1Hp+q3p6VF6Xcx7+U1bug8qFipAei6jvMMkpYdgprSjFZ5CqS2/ ed4A== 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=WFr4m2pgDwRSQs/uzZOJjFGiTc3weLf370rph5o9Byc=; fh=CqrZZOXapcO6WAsXjNrjTQSj9fEMNwVnBtmWk5wPJKU=; b=l486DIqU1WHXxJGx55U4qImyQHuXRVUsaGig8L1lUxb7C16ijKuDYgBsSc9ICsN3Pk h9WHPeon2VU3sdjNFRGnKNqLyz5t148Xe9H+ahiBUwQjFVkQsc0+ccQr8wpi5/K6tWWC zvm+o0I6un5FynX5YvdDuKHnCyEOpLveIw6+71Z5FEgg4kuoCqqT4Z5+HRqG/8TjDLSk PMOmzED7w7IZ6xi5A/TCqi0ujf5i0XS6+gALBaxNMSVfcVKu4771hZOpXqncsPb1Of5x Rq7eXucmveNBrkex9HSODurVAyRY7d2Wb6VZFYPDXVz+ST2mmZU3hTCEJaPkp6COWOPN KGYw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=lR9UsNq0; 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 ffacd0b85a97d-4a65a1baf08si5224240f8f.374.2026.11.18.04.47.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 04:47:28 -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=lR9UsNq0; 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=WFr4m2pgDwRSQs/uzZOJjFGiTc3weLf370rph5o9Byc=; b=lR9UsNq0YVmx 84uPoEjgpd7ZK9PvQD67NxHBkgGcUJD7xSa9L8bgIlBq5tc7FpixpLRZ3M/k+VhJJzlLzkrTHjwKw fdvEAoHWMLENodPWUUcJqDYHshIhL6n5TLjeYwmkV9XomBWIx0Ej0ICzmTiRcpgzGQHtrW4uXxeuY kyWXL9HiUPagy/7W0qm6S9w+jLC9DjXnFvs3RUxQvV+nvsTZQn702WdFsxCCiCYRy1urlmVxhpy3S I6PJUu5RiILDmfLD08GUuscgn4H7Rc1xf5fLjsqMj6WFpHSEuKuxu9hLsB6fMcRVzKPBXZtZmDUHd CaH2N8DKxPEnoQMeYH858g==; 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 1xTf0A-004NDp-0x; Wed, 18 Nov 2026 13:47:27 +0100 MIME-Version: 1.0 From: Konstantin Khorenko To: Vasileios Almpanis In-Reply-To: <20261118-vstor-153891-v1-1-f31daea66355@virtuozzo.com> References: <20261118-vstor-153891-v1-1-f31daea66355@virtuozzo.com> Date: Wed, 18 Nov 2026 13:47:27 +0100 Message-Id: <179500604764.197283.8507554022395271348.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1913; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=BWW3pEu6/ZIrBUec4HXvvVyg2uw8r9fAkVhnh+afACw=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBq/Z5fenKXR76tDVbYijRL2Rn4PSYIgWYY60iN6 q+HaeWTHviJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCav2eXwAKCRBRlgpH+WFc KlbXD/9ie0NksxSrZYD7NZj+uLNCu0ze7bUi3CUoJtlu02rPS3oD1KycbBIExXYfRN5vQwJCXof wGY364be+AuOjvtBUxZPXjQmtgA2yEIK+ulC/OBeCcgEDDDNOoBjV6nvB+CkEnHd67SH30xg9j7 bibZWgN61i8fi29I8oQ39LUsAeoBQmo9gnmwgTZPzY0HEdiy3WPWe10T+gIphGyvnocsf2nAeFw 7ndX7ZAxC9+7TvGIqYvW6tb1mPxV6v1iAtJLij/917BqnFJYUKlvAOq0tgPUr0HK7KAo1atapNu 0g9vjXA1AjVikwT5UZiw8EA1OKUw2BRSO8w+jNCKq0DZoU06AJKu9jNGSZ0hF65tJroYXj7pOry 8M1B0Ds9F+tzaumQXiURZFri2WekvS5rkN0zBowMwOMMPtStzs9th95cGXfqDBWR+uPdya4rYFu nZubLq+7/NO8yP+jdghLRRoV3Fb7uG93TawGtPNDi5ySfY03A+YvNk3ivGYiWtmYOssL+lD3rxv pvVRNwNqrryqFBQ/8f9Kr7xp7y1HxcVKXqv7vDBoYMuKD6efSQZhQd8q8THpNDSBervixYsdx3F ovvB+AiiUBrpfA4Vz/S2VHhrG2KoP8b8lsnNpZtZ5U1A6wFbQZKLH6+5jYGy7gK5kLar4Z2qgDb raBLlXwTMMovaCg== 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] dm/push_backup: stop the backup when the process that started it exits 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. 1. Return -EINVAL for a fourth argument other than fail_on_process_exit: now ret is still 0 from down_write_killable(), nothing starts and the caller sees success. VSTOR-155761 covers the same for the rest of push_backup_start; fix it there first or set ret = -EINVAL before the argument checks here. 2. push_backup_statistics: report expires_in as 0 for every expired session. After the process exits with writes postponed, cleanup_backup() leaves deadline_jiffies in the future, so the statistics show a positive expires_in next to "expired". 3. Message: say that the message has to come from the backup process itself; sent through "dmsetup message" the session expires as soon as dmsetup exits. 4. Message: the reason for watching the process, see below; and the 60 seconds are ploop-backup's default, the kernel has none, the timeout is a required argument. Split the "With this argument" paragraph, it has seven sentences: the mechanism, then what the user sees. A question, no change needed if it is intended: a session whose backup has finished (nr_remaining_clus=0) also expires when the process exits before push_backup_stop, and the fd then returns ESTALE instead of 0. On Wed, 18 Nov 2026 12:21:11 +0000, Vasileios Almpanis wrote: > We watch the process and not the event fd, because the fd can end up > in another process, for example in a child of ploop-backup. That > process would then keep the session alive after ploop-backup dies. 4. The fd is O_CLOEXEC, so it reaches a child only through a fork without exec. The stronger reasons: the fd is bound to the target, not to a backup session (d723a1617e619), and a session driven by push_backup_read/push_backup_write has no fd at all. Thanks. -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel