ceph: release cap on import if we don't have the inode
authorSage Weil <sage@newdream.net>
Wed, 9 Jun 2010 23:47:10 +0000 (16:47 -0700)
committerSage Weil <sage@newdream.net>
Thu, 10 Jun 2010 20:30:07 +0000 (13:30 -0700)
commit3d7ded4d81d807c2f75f310a8d74a5d72be13a1b
treec633b938f72dcd39c84f2430c7d4025331ab4369
parent9dbd412f56c453f15014396c6024b895c1485ccb
ceph: release cap on import if we don't have the inode

If we get an IMPORT that give us a cap, but we don't have the inode, queue
a release (and try to send it immediately) so that the MDS doesn't get
stuck waiting for us.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h