ceph: MDS client

Previous thread: ceph: revoke osd request message on request completion by Linux Kernel Mailing List on Friday, March 19, 2010 - 9:59 am. (1 message)

Next thread: ceph: initialize sb->s_bdi, bdi_unregister after kill_anon_super by Linux Kernel Mailing List on Friday, March 19, 2010 - 9:59 am. (1 message)
From: Linux Kernel Mailing List
Date: Friday, March 19, 2010 - 9:59 am

Gitweb:     http://git.kernel.org/linus/2f2dc053404febedc9c273452d9d518fb31fde72
Commit:     2f2dc053404febedc9c273452d9d518fb31fde72
Parent:     1d3576fd10f0d7a104204267b81cf84a07028dad
Author:     Sage Weil <sage@newdream.net>
AuthorDate: Tue Oct 6 11:31:09 2009 -0700
Committer:  Sage Weil <sage@newdream.net>
CommitDate: Tue Oct 6 11:31:09 2009 -0700

    ceph: MDS client
    
    The MDS (metadata server) client is responsible for submitting
    requests to the MDS cluster and parsing the response.  We decide which
    MDS to submit each request to based on cached information about the
    current partition of the directory hierarchy across the cluster.  A
    stateful session is opened with each MDS before we submit requests to
    it, and a mutex is used to control the ordering of messages within
    each session.
    
    An MDS request may generate two responses.  The first indicates the
    operation was a success and returns any result.  A second reply is
    sent when the operation commits to disk.  Note that locking on the MDS
    ensures that the results of updates are visible only to the updating
    client before the operation commits.  Requests are linked to the
    containing directory so that an fsync will wait for them to commit.
    
    If an MDS fails and/or recovers, we resubmit requests as needed.  We
    also reconnect existing capabilities to a recovering MDS to
    reestablish that shared session state.  Old dentry leases are
    invalidated.
    
    Signed-off-by: Sage Weil <sage@newdream.net>
---
 fs/ceph/mds_client.c | 2912 ++++++++++++++++++++++++++++++++++++++++++++++++++
 fs/ceph/mds_client.h |  321 ++++++
 fs/ceph/mdsmap.c     |  166 +++
 fs/ceph/mdsmap.h     |   53 +
 4 files changed, 3452 insertions(+), 0 deletions(-)

diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
new file mode 100644
index 0000000..de8ba4a
--- /dev/null
+++ b/fs/ceph/mds_client.c
@@ -0,0 +1,2912 @@
+#include "ceph_debug.h"
+
+#include ...
Previous thread: ceph: revoke osd request message on request completion by Linux Kernel Mailing List on Friday, March 19, 2010 - 9:59 am. (1 message)

Next thread: ceph: initialize sb->s_bdi, bdi_unregister after kill_anon_super by Linux Kernel Mailing List on Friday, March 19, 2010 - 9:59 am. (1 message)