aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-06-21 16:45:04 -0400
committerSage Weil <sage@newdream.net>2010-08-01 23:11:41 -0400
commit154f42c2c3c3b66a7a63dad5648e8a9860a32af9 (patch)
tree408beec027a62dcb67f212b07590039aea22866b /fs/ceph/mds_client.c
parentcb170a22153730eb9c82b6c85ead2001dba6c41a (diff)
ceph: connect to export targets on cap export
When we get a cap EXPORT message, make sure we are connected to all export targets to ensure we can handle the matching IMPORT. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 552b934c9cd0..a546e0ddb8e3 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -741,6 +741,14 @@ static void __open_export_target_sessions(struct ceph_mds_client *mdsc,
741 } 741 }
742} 742}
743 743
744void ceph_mdsc_open_export_target_sessions(struct ceph_mds_client *mdsc,
745 struct ceph_mds_session *session)
746{
747 mutex_lock(&mdsc->mutex);
748 __open_export_target_sessions(mdsc, session);
749 mutex_unlock(&mdsc->mutex);
750}
751
744/* 752/*
745 * session caps 753 * session caps
746 */ 754 */