From: Yan, Zheng Date: Wed, 27 May 2015 01:59:48 +0000 (+0800) Subject: ceph: fix flushing caps X-Git-Tag: omap-for-v4.2/fixes-rc1^2~38^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89b52fe14de4d703ba837a7418bb4cd286dcc87f;p=pandora-kernel.git ceph: fix flushing caps 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 --- Reading git-diff-tree failed