Re: [PATCH v2] fs: Fix page cache inconsistency when mixing buffered and AIO DIO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon 17-07-17 11:39:09, Jeff Moyer wrote:
> Lukas Czerner <lczerner@xxxxxxxxxx> writes:
> 
> > About the error case, is it not possible that some data has already been
> > writtent to the disk despite the error ?
> 
> Yes, it's possible.  However, that data is in an inconsistent state, so
> it shouldn't be read, anyway.
> 
> Now, in the non-async path, we do the invalidation unconditionally, so I
> could go either way on this.  I don't think it's going to matter for
> performance or data integrity.

Well, at least 'ret' would be negative in the error case so arguments
passed to invalidate_inode_pages2_range() would be bogus if I'm reading the
code right...

								Honza
-- 
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux