Skip to content

Commit

Permalink
ceph: rename function drop_leases() to a more descriptive name
Browse files Browse the repository at this point in the history
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
  • Loading branch information
Yan, Zheng authored and Ilya Dryomov committed Apr 2, 2018
1 parent 50c55ae commit 7aac453
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

dout("drop_leases\n");
mutex_lock(&mdsc->mutex);
for (i = 0; i < mdsc->max_sessions; i++) {
struct ceph_mds_session *s = __ceph_lookup_mds_session(mdsc, i);
Expand Down Expand Up @@ -3663,7 +3662,7 @@ void ceph_mdsc_pre_umount(struct ceph_mds_client *mdsc)
dout("pre_umount\n");
mdsc->stopping = 1;

drop_leases(mdsc);
lock_unlock_sessions(mdsc);
ceph_flush_dirty_caps(mdsc);
wait_requests(mdsc);

Expand Down

0 comments on commit 7aac453

Please sign in to comment.