On Fri, Dec 05, 2008 at 01:41:32PM -0500, Chuck Lever wrote: > On Dec 5, 2008, at 12:29 PM, J. Bruce Fields wrote: >> How about adding an explicit fsync() of the state file (and parent >> directory) to statd's first succesful creation of a statd record, >> together with a comment explaining this? So around about line 194 in >> utils/statd/monitor.c:sm_mon_1_svc()? >> >> In fact, we could delete the sync entirely and do the same before the >> first notification, and then we wouldn't have to wait for the sync in >> the case host records are present either.... (statd would, but >> perhaps >> we could still get other work done in the mean time). >> >> (Am I missing something?) > > This all might work, but I think we're adding a lot of complexity as a > workaround. I think you mean the justification is too subtle--the code itself (just a couple syncs or fsyncs) is pretty simple. > Someone should fix the real problem, which is the > implementation of sync(). I think you mean of fsync(). My understanding of past discussions on the issue is that it's not really fixable on ext3, at least. So default setups will have this problem for a while. --b. > That would probably have other benefits too. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html