Skip to content

Commit

Permalink
ceph: track pending caps flushing accurately
Browse files Browse the repository at this point in the history
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 <zyan@redhat.com>
  • Loading branch information
Yan, Zheng authored and Ilya Dryomov committed Jun 25, 2015
1 parent 6c13a6b commit 553adfd
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 88 deletions.
Loading

0 comments on commit 553adfd

Please sign in to comment.