ceph: call handle_cap_grant() for cap import message
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 19 Nov 2012 02:49:09 +0000 (10:49 +0800)
committerAlex Elder <elder@inktank.com>
Thu, 13 Dec 2012 14:13:08 +0000 (08:13 -0600)
commit0e5e1774a92e6fe9c511585de8f078b4c4c68dbb
treeafae65bdcf42f8eddbd906c4038c6c67249b626b
parenta85f50b6ef93fbbb2ae932ce9b2376509d172796
ceph: call handle_cap_grant() for cap import message

If client sends cap message that requests new max size during
exporting caps, the exporting MDS will drop the message quietly.
So the client may wait for the reply that updates the max size
forever. call handle_cap_grant() for cap import message can
avoid this issue.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
fs/ceph/caps.c