]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: issue caps from drop_locks
authorSage Weil <sage@newdream.net>
Thu, 9 Jun 2011 17:41:53 +0000 (10:41 -0700)
committerSage Weil <sage@newdream.net>
Thu, 9 Jun 2011 23:14:02 +0000 (16:14 -0700)
commit2a45bcad02d6ec2196961281c369ca762c49fdb6
treef6cc9b5242e3321681e53fdba8c979d3b1d1afdb
parentc786391161435e5ef8ae2fb98bc826c1b37ef5cc
mds: issue caps from drop_locks

In drop_locks, build a set of inodes we need to issue caps on.  Then do it
all at once.  This does two things:

 - it fixes the fact that currently a dropped lock leading to an eval and
   lock state change will not issue caps _at_all_
 - it ensure we only issue_caps once for each inode, even when we are
   dropping multiple locks on it.

This should fix #1084.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/Locker.cc
src/mds/Locker.h