Commit 7aac453a authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov

ceph: rename function drop_leases() to a more descriptive name

Signed-off-by: default avatar"Yan, Zheng" <zyan@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 50c55aec
...@@ -3473,13 +3473,12 @@ void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session, ...@@ -3473,13 +3473,12 @@ void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session,
} }
/* /*
* drop all leases (and dentry refs) in preparation for umount * lock unlock sessions, to wait ongoing session activities
*/ */
static void drop_leases(struct ceph_mds_client *mdsc) static void lock_unlock_sessions(struct ceph_mds_client *mdsc)
{ {
int i; int i;
dout("drop_leases\n");
mutex_lock(&mdsc->mutex); mutex_lock(&mdsc->mutex);
for (i = 0; i < mdsc->max_sessions; i++) { for (i = 0; i < mdsc->max_sessions; i++) {
struct ceph_mds_session *s = __ceph_lookup_mds_session(mdsc, i); struct ceph_mds_session *s = __ceph_lookup_mds_session(mdsc, i);
...@@ -3663,7 +3662,7 @@ void ceph_mdsc_pre_umount(struct ceph_mds_client *mdsc) ...@@ -3663,7 +3662,7 @@ void ceph_mdsc_pre_umount(struct ceph_mds_client *mdsc)
dout("pre_umount\n"); dout("pre_umount\n");
mdsc->stopping = 1; mdsc->stopping = 1;
drop_leases(mdsc); lock_unlock_sessions(mdsc);
ceph_flush_dirty_caps(mdsc); ceph_flush_dirty_caps(mdsc);
wait_requests(mdsc); wait_requests(mdsc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment