]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: try to send partial cap release on cap message on missing inode
authorSage Weil <sage@newdream.net>
Wed, 9 Jun 2010 23:52:04 +0000 (16:52 -0700)
committerSage Weil <sage@newdream.net>
Thu, 10 Jun 2010 20:30:25 +0000 (13:30 -0700)
commitb93116e70e1ec9dafe8825e92696aaea7a40dacf
tree50707a1b8a547d781dc23fd830c23d580671c8a8
parent0d517f5a316bf00897a155141fc8e249f16b1bca
ceph: try to send partial cap release on cap message on missing inode

If we have enough memory to allocate a new cap release message, do so, so
that we can send a partial release message immediately.  This keeps us from
making the MDS wait when the cap release it needs is in a partially full
release message.

If we fail because of ENOMEM, oh well, they'll just have to wait a bit
longer.

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