Re: [PATCH v2 2/5] dax: clear TOWRITE flag after flush is complete

2016-01-22 Thread Jan Kara
On Thu 21-01-16 10:46:01, Ross Zwisler wrote: > Previously in dax_writeback_one() we cleared the PAGECACHE_TAG_TOWRITE flag > before we had actually flushed the tagged radix tree entry to media. This > is incorrect because of the following race: > > Thread 1 Thread 2

Re: [PATCH v2 2/5] dax: clear TOWRITE flag after flush is complete

2016-01-22 Thread Jan Kara
On Thu 21-01-16 10:46:01, Ross Zwisler wrote: > Previously in dax_writeback_one() we cleared the PAGECACHE_TAG_TOWRITE flag > before we had actually flushed the tagged radix tree entry to media. This > is incorrect because of the following race: > > Thread 1 Thread 2

[PATCH v2 2/5] dax: clear TOWRITE flag after flush is complete

2016-01-21 Thread Ross Zwisler
Previously in dax_writeback_one() we cleared the PAGECACHE_TAG_TOWRITE flag before we had actually flushed the tagged radix tree entry to media. This is incorrect because of the following race: Thread 1Thread 2

[PATCH v2 2/5] dax: clear TOWRITE flag after flush is complete

2016-01-21 Thread Ross Zwisler
Previously in dax_writeback_one() we cleared the PAGECACHE_TAG_TOWRITE flag before we had actually flushed the tagged radix tree entry to media. This is incorrect because of the following race: Thread 1Thread 2