]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: make issue_caps from file_update_finish smarter
authorSage Weil <sage@newdream.net>
Thu, 9 Jun 2011 17:43:13 +0000 (10:43 -0700)
committerSage Weil <sage@newdream.net>
Thu, 9 Jun 2011 23:14:02 +0000 (16:14 -0700)
commit88b2246350fcf38de348623ba4b836b1e36887de
treef4645b092dbc4e38e70ff4dd92320c05a6e785eb
parent2a45bcad02d6ec2196961281c369ca762c49fdb6
mds: make issue_caps from file_update_finish smarter

We do one funky thing in file_update_finish that only issues caps on a
single cap when max_size changes.  This is more commonly we see.  However,
if a lock changes state and we need to issue on the whole inode (for all
clients), avoid doing the cap-specific issue by checking the issue set.

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