]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: discover snapped paths on retried ops
authorSage Weil <sage@newdream.net>
Tue, 1 Jun 2010 18:38:22 +0000 (11:38 -0700)
committerSage Weil <sage@newdream.net>
Tue, 1 Jun 2010 19:57:23 +0000 (12:57 -0700)
commitc4bbb0008b2b6dd2a8d377a5c6424592221ca846
tree6c6af31826e43e5791bd82bc8820af424b05b4a9
parent464e46c81dffdd45d82ea7caa300b52cf3cd6c27
mds: discover snapped paths on retried ops

This is intended to mitigate a livelock issue with traversing to snapped
metadata.  The client specifies all snap requests relative to a non-snap
inode.  The traversal through the snapped portion of the namespace will
normally happen on the auth node, but the actual target may be on another
node that does not have that portion of the namespace.  To avoid indefinite
request ping-pong, the mds will begin to discover and replicate the snapped
path components if the request has been retried.

This doesn't perform optimally, but it will at least work.
src/mds/MDCache.cc