From: Sage Weil Date: Mon, 8 Nov 2010 17:23:12 +0000 (-0800) Subject: ceph: fix version check on racing inode updates X-Git-Tag: v2.6.37-rc3~2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bd59e0188c04f6540f00e13f633f22e4804ce06;p=pandora-kernel.git ceph: fix version check on racing inode updates We may get updates on the same inode from multiple MDSs; generally we only pay attention if the update is newer than what we already have. The exception is when an MDS sense unstable information, in which case we always update. The old > check got this wrong when our version was odd (e.g. 3) and the reply version was even (e.g. 2): the older stale (v2) info would be applied. Fixed and clarified the comment. Signed-off-by: Sage Weil --- Reading git-diff-tree failed