ceph: fix flushing caps
authorYan, Zheng <zyan@redhat.com>
Wed, 27 May 2015 01:59:48 +0000 (09:59 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jun 2015 08:49:30 +0000 (11:49 +0300)
Current ceph_fsync() only flushes dirty caps and wait for them to be
flushed. It doesn't wait for caps that has already been flushing.
This patch makes ceph_fsync() wait for pending flushing caps too.
Besides, this patch also makes caps_are_flushed() peroperly handle
tid wrapping.

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

diff --cc fs/ceph/caps.c
Simple merge