]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: add flags parameter to send_cap_msg
authorJeff Layton <jlayton@redhat.com>
Thu, 10 Nov 2016 12:42:06 +0000 (07:42 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 22 Nov 2016 09:55:53 +0000 (10:55 +0100)
commitc2b1a55b3457fbe22a156ef28c0a33295c22df0d
tree3e34dc3dde6e706cd2a9e4c68525ac80179bedcf
parent7be4df86a840c9474cc30e8d4323b89cf952311d
ceph: add flags parameter to send_cap_msg

Add a flags parameter to send_cap_msg, so we can request expedited
service from the MDS when we know we'll be waiting on the result.

Set that flag in the case of try_flush_caps. The callers of that
function generally wait synchronously on the result, so it's beneficial
to ask the server to expedite it.

Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/ceph/caps.c
include/linux/ceph/ceph_fs.h