Messages in this thread | | | Subject | Re: nfs invalidates lose pte dirty bits | From | Trond Myklebust <> | Date | Fri, 23 Dec 2005 22:02:59 +0100 |
| |
On Fri, 2005-12-23 at 16:17 +0100, Andrea Arcangeli wrote: > > However if the user is doing mmap writes while the file is in the > > process of being modified on the server, then they are doing something > > wrong anyway. The small race between nfs_sync_mapping() and > > invalidate_inode_pages2() is the least of their problems. > > I'm talking about spurious revalidates, I don't think the testcase I'm > dealing with is really needing an invalidate, it's a spurious one > (perhaps triggered by flock), but I'm lucky it's single threaded so > current fix will work for them.
We should perhaps think of setting up an "unmap_write_dirty_and_invalidate" helper in order to deal with this sort of race. As long as we have to first unmap all the pages, then write the dirty ones, then invalidate them, we will be open to races.
Cheers, Trond
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |