Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2554127pxb; Mon, 11 Jan 2021 12:47:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlx3Y0UIBhIozufunaqUcDcey+fvYXfmkbEAvi+JffUihxN5j4O9L0PuIXWTYCjawI8cac X-Received: by 2002:a05:6402:318f:: with SMTP id di15mr838595edb.237.1610398035511; Mon, 11 Jan 2021 12:47:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610398035; cv=none; d=google.com; s=arc-20160816; b=Z43NhUi9lYfprA4hgkW6gqOIT5e3yMPUcs5ER1cIBWKViNlLlq5XXzrvNlZdYKc69D FiXTpYIe9Swk8mcEW1HxCKNxP1tywljUxl5sWlXpvM57qb3vrrUU3qSFk84cxmsJFkcg RScupZCO/PxEmeby+fl9/YDqQG3W2+2tHiE0FYNRVQYkL40qcyV2Y4l1tpjVnJw9Vd/U MYoZN+YkSjj4R6yEoFViSsc5Wa7pDBBGyRFTvaEqMbRZrzKqQEII0VWn+SE24PrfiwtP /e1KhQavddHUAV/25Q8PU2XIiEdaeshiZXgmgCmgksK/Fes02Gg2WpTcoaFLcO8GlT57 Bo9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z6isE+TAK8zzYjTpLOsSAFZnpq0rQzZjm2i7saeOLGQ=; b=huDeXvHPQmxnzL5/MLvYJErj/WyNJ+Sk6uEDN1qxdzw1BvLa7Kl4NJ9Jl+5UHs86Cd VVLofAI5a5mnrWTCcuOImwxO/bqcjDILZNeI1WjwSqaZ0Wx9gnnmMiObbwPo5Y5MOxfe bm/VhiXHhKyU25iUWLp7pcgxfogDldI+oOY46adGHLM2h9sKKqR0fusMLbF/W0twFkCx wDMz5Hvx/ScbTA5mDbCWnwPDWlO27jVBNcKixnjdFEc7FLAviZaR5mC+vNU8OGBLtdbJ ZXQfXM14kFHGgHaosjVnAIm3qFfGNnPLYx+NDlAc8gkp/2qYQtGyrevfWfQxqnPbB/PU tf4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g6E1CBBA; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si198431ejy.327.2021.01.11.12.46.49; Mon, 11 Jan 2021 12:47:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g6E1CBBA; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390316AbhAKUpY (ORCPT + 99 others); Mon, 11 Jan 2021 15:45:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:37784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391313AbhAKUpS (ORCPT ); Mon, 11 Jan 2021 15:45:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0922F222B6; Mon, 11 Jan 2021 20:44:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610397877; bh=M1OSN1vteho8Huw58TPHtw4Wnq7VMtKCfQ1CREQhDR0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g6E1CBBApgNQRIvnyUYpczU4snTK3TxTIWiGp2D7l9axmxnf6NKFoHnat6vVu4e2x I9XIFx85m+OaASnJa35GO1Lnq6n9jCT+wDbjGwYs6QheK3MCRNoAdJlZfYYodREnYB o+3ziJVlenNjdNHZNq3EDaRlJJAlbS6mK1P7kvZryDnMiAPy1kFnfILWddwBcW6wxu SELSewJq8rbzB/ndE+t+XbX/vEKHxLvi2jQezrrvts8jJ1y/+Ad2x5xKCgaHtetEX3 OZcpXXl3Hsh8sIV0cn0ov2lVF0/F8gETBM8QdHmHtC59U75feIsb+nL+o6/OlT3c++ dyjRmmLboidRg== Date: Mon, 11 Jan 2021 12:44:35 -0800 From: Eric Biggers To: Jan Kara Cc: linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Theodore Ts'o , Christoph Hellwig Subject: Re: [PATCH v2 00/12] lazytime fix and cleanups Message-ID: References: <20210109075903.208222-1-ebiggers@kernel.org> <20210111151517.GK18475@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210111151517.GK18475@quack2.suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Jan 11, 2021 at 04:15:17PM +0100, Jan Kara wrote: > Hi! > > On Fri 08-01-21 23:58:51, Eric Biggers wrote: > > Hello, > > > > Patch 1 fixes a bug in how __writeback_single_inode() handles lazytime > > expirations. I originally reported this last year > > (https://lore.kernel.org/r/20200306004555.GB225345@gmail.com) because it > > causes the FS_IOC_REMOVE_ENCRYPTION_KEY ioctl to not work properly, as > > the bug causes inodes to remain dirty after a sync. > > > > It also turns out that lazytime on XFS is partially broken because it > > doesn't actually write timestamps to disk after a sync() or after > > dirtytime_expire_interval. This is fixed by the same fix. > > > > This supersedes previously proposed fixes, including > > https://lore.kernel.org/r/20200307020043.60118-1-tytso@mit.edu and > > https://lore.kernel.org/r/20200325122825.1086872-3-hch@lst.de from last > > year (which had some issues and didn't fix the XFS bug), and v1 of this > > patchset which took a different approach > > (https://lore.kernel.org/r/20210105005452.92521-1-ebiggers@kernel.org). > > > > Patches 2-12 then clean up various things related to lazytime and > > writeback, such as clarifying the semantics of ->dirty_inode() and the > > inode dirty flags, and improving comments. Most of these patches could > > be applied independently if needed. > > > > This patchset applies to v5.11-rc2. > > The series look good to me. How do you plan to merge it (after resolving > Christoph's remarks)? I guess either Ted can take it through the ext4 tree > or I can take it through my tree... > I think taking it through your tree would be best, unless Al or Ted wants to take it. I'll probably separate out "xfs: remove a stale comment from xfs_file_aio_write_checks()", since it isn't really related anymore and could go in through the XFS tree. - Eric