[0/3] xfs: Fix races between readahead and hole punching
mbox series

Message ID 20190711140012.1671-1-jack@suse.cz
Headers show
Series
  • xfs: Fix races between readahead and hole punching
Related show

Message

Jan Kara July 11, 2019, 2 p.m. UTC
Hello,

this is a patch series that addresses a possible race between readahead and
hole punching Amir has discovered [1]. The first patch makes madvise(2) to
handle readahead requests through fadvise infrastructure, the third patch
then adds necessary locking to XFS to protect against the race. Note that
other filesystems need similar protections but e.g. in case of ext4 it isn't
so simple without seriously regressing mixed rw workload performance so
I'm pushing just xfs fix at this moment which is simple.

								Honza

[1] https://lore.kernel.org/linux-fsdevel/CAOQ4uxjQNmxqmtA_VbYW0Su9rKRk2zobJmahcyeaEVOFKVQ5dw@mail.gmail.com/