lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251222234156.GA19230@lst.de>
Date: Tue, 23 Dec 2025 00:41:56 +0100
From: Christoph Hellwig <hch@....de>
To: Jan Kara <jack@...e.cz>
Cc: Christoph Hellwig <hch@....de>, Christian Brauner <brauner@...nel.org>,
	Al Viro <viro@...iv.linux.org.uk>, David Sterba <dsterba@...e.com>,
	Mike Marshall <hubcap@...ibond.com>,
	Martin Brandenburg <martin@...ibond.com>,
	Carlos Maiolino <cem@...nel.org>, Stefan Roesch <shr@...com>,
	Jeff Layton <jlayton@...nel.org>, linux-kernel@...r.kernel.org,
	linux-btrfs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
	gfs2@...ts.linux.dev, io-uring@...r.kernel.org,
	devel@...ts.orangefs.org, linux-unionfs@...r.kernel.org,
	linux-mtd@...ts.infradead.org, linux-xfs@...r.kernel.org,
	linux-nfs@...r.kernel.org
Subject: Re: [PATCH 08/10] fs: add support for non-blocking timestamp
 updates

On Fri, Dec 19, 2025 at 04:12:01PM +0100, Jan Kara wrote:
> Ah, I see now. Thanks for explanation. This interplay between filesystem's
> .update_time() helper and inode_update_timestamps() is rather subtle.
> Cannot we move the SB_LAZYTIME checking from .update_time() to
> inode_update_timestamps() to have it all in one function? The hunk you're
> adding to xfs_vn_update_time() later in the series looks like what the
> other filesystems using it will want as well?

XFS is a bit special as it requires the ilock for timestamp updates
(I'm actually not sure how they are properly serialized for others,
but let's open that can of worms after this one is dealt with..).

But I came up with a way to make this a bit more obvious, which is
by moving the flags selection from mark_inode_dirty_time into
inode_update_timestamps.

> BTW, I've noticed that ovl_update_time() and fat_update_time() should be
> safe wrt NOWAIT IO so perhaps you don't have to disable it in your patch
> (or maybe reenable explicitly?).

fat is safe.  overlayfs is not, touch_atime might sleep in the lower fs.

> And I don't really now what orangefs_update_time() is trying to do with its
> __orangefs_setattr() call which just copies the zeroed-out timestamps from
> iattr into the inode? Mike?

I'll leave that to Mike.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ