Created attachment 951441 [details] Patch to make quick-read invalidate its cache when requested This is one of the "other bugs" mentioned in bug #1158120. When running the same example as in that bug report on a filesystem mounted with o-direct, with that patch applied, then the output is sometimes correct $ echo init > $D/f; cat $D/f; ssh $OTHER_HOST "echo second > $D/$f"; cat $D/f init second but sometimes gives $ echo init > $D/f; cat $D/f; ssh $OTHER_HOST "echo second > $D/$f"; cat $D/f init init d This is because the quick-read translator does not respond to cache invalidation requests. The attached patch makes it listen to invalidation requests and discard its cache.
GlusterFS-3.6 is nearing its End-Of-Life, only important security bugs still make a chance on getting fixed. Moving this to the mainline 'version'. If this needs to get fixed in 3.7 or 3.8 this bug should get cloned
Thanks for the patch (long back), and I see that its already in the codebase!