On Sun, Jul 29, 2018 at 10:55:39PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > In Christoph Hellwig's patch "xfs: avoid COW fork extent lookups in > writeback if the fork didn't change" (which has not yet graduated to > for-next), we sample the COW fork sequence number without taking the > ilock. This is a little strange, since in general we always take it > before accessing anything in a block mapping. I think we get lucky in > that the unlocking during actual cow fork changes will erect the > necessary memory barriers (on x86 anyway) but let's not play fast and > loose with breaking everyone else's model of how locking works. What exaxtly do you want to protect here? It's not like we have any multiple fields we need to synchronize access to to. And it's not like this is superficials - in addition to not providing any actual synchronization this also means we have to take the ilock for every page, which reduces a large part of the improvements in the series. -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html