ceph: fix message order check in handle_cap_export()
authorYan, Zheng <zyan@redhat.com>
Mon, 28 Aug 2017 07:07:42 +0000 (15:07 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:53 +0000 (19:56 +0200)
commitfa0aa3b839b922c7bb911dbe2435da2a4e59d82d
tree41bd7b7f3c2766b2c03c516b99b6e17f77268fb2
parentc858a0709f991171256db74f4329a1cb8e823764
ceph: fix message order check in handle_cap_export()

If caps for importer mds exists, but cap id mismatch, client should
have received corresponding import message. Because cap ID does not
change as long as client holds the caps.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c