Re: [Devel] [PATCH vz7] fuse: fuse_writepage_locked must check for FUSE_INVALIDATE_FILES (v2)

2017-01-12 Thread Dmitry Monakhov
Maxim Patlasov writes: > The patch fixes another race dealing with fuse_invalidate_files, > this time when it races with truncate(2): > > Thread A: the flusher performs writeback as usual: > > fuse_writepages --> > fuse_send_writepages --> >

[Devel] [PATCH vz7] fuse: fuse_writepage_locked must check for FUSE_INVALIDATE_FILES (v2)

2016-12-26 Thread Maxim Patlasov
The patch fixes another race dealing with fuse_invalidate_files, this time when it races with truncate(2): Thread A: the flusher performs writeback as usual: fuse_writepages --> fuse_send_writepages --> end_page_writeback but before fuse_send_writepages acquires fc->lock and calls