On Fri 22-06-18 13:09:41, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > We've recently seen a workload on XFS filesystems with a repeatable > deadlock between background writeback and a multi-process > application doing concurrent writes and fsyncs to a small range of a > file. Going through some old email and this didn't seem to be merged yet? FWIW I agree with your solution and the patch looks good to me. Feel free to add: Reviewed-by: Jan Kara <jack@xxxxxxx> and then send it to AKPM for inclusion. Honza -- Jan Kara <jack@xxxxxxxx> SUSE Labs, CR