From: Yan, Zheng Date: Tue, 9 Jun 2015 07:48:57 +0000 (+0800) Subject: ceph: track pending caps flushing accurately X-Git-Tag: omap-for-v4.2/fixes-rc1^2~38^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=553adfd941f8ca622965ef809553d918ea039929;p=pandora-kernel.git ceph: track pending caps flushing accurately Previously we do not trace accurate TID for flushing caps. when MDS failovers, we have no choice but to re-send all flushing caps with a new TID. This can cause problem because MDS can has already flushed some caps and has issued the same caps to other client. The re-sent cap flush has a new TID, which makes MDS unable to detect if it has already processed the cap flush. This patch adds code to track pending caps flushing accurately. When re-sending cap flush is needed, we use its original flush TID. Signed-off-by: Yan, Zheng --- Reading git-diff-tree failed