Skip to content

Commit

Permalink
ceph: do not drop lease during revalidate
Browse files Browse the repository at this point in the history
We need to hold session s_mutex for __ceph_mdsc_drop_dentry_lease(), which
we don't, so skip it.  It was purely an optimization.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Dec 22, 2009
1 parent c4a29f2 commit 5de7bf8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/ceph/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,6 @@ static int dentry_lease_is_valid(struct dentry *dentry)
di->lease_renew_after = 0;
di->lease_renew_from = jiffies;
}
} else {
__ceph_mdsc_drop_dentry_lease(dentry);
}
}
spin_unlock(&dentry->d_lock);
Expand Down

0 comments on commit 5de7bf8

Please sign in to comment.