diff options
author | Sage Weil <sage@newdream.net> | 2010-06-21 13:45:04 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-08-01 20:11:41 -0700 |
commit | 154f42c2c3c3b66a7a63dad5648e8a9860a32af9 (patch) | |
tree | 408beec027a62dcb67f212b07590039aea22866b /fs/ceph/mds_client.c | |
parent | cb170a22153730eb9c82b6c85ead2001dba6c41a (diff) | |
download | talos-op-linux-154f42c2c3c3b66a7a63dad5648e8a9860a32af9.tar.gz talos-op-linux-154f42c2c3c3b66a7a63dad5648e8a9860a32af9.zip |
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.c | 8 |
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, } } +void ceph_mdsc_open_export_target_sessions(struct ceph_mds_client *mdsc, + struct ceph_mds_session *session) +{ + mutex_lock(&mdsc->mutex); + __open_export_target_sessions(mdsc, session); + mutex_unlock(&mdsc->mutex); +} + /* * session caps */ |