]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: make fsync waits for single inode's flushing caps
authorYan, Zheng <zyan@redhat.com>
Wed, 27 May 2015 06:58:27 +0000 (14:58 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 29 May 2015 02:03:08 +0000 (10:03 +0800)
commitce27ae4f16cdf5ce2457dee04514efd2c188968c
treeebc7b5f2a377c3dceb750b1fe5a1e228f046dec2
parent6bb9e158fc30a7fb1e6b3a7f500bed5c14e3de01
client: make fsync waits for single inode's flushing caps

Client::_fsync() calls Client::wait_sync_caps(uint64_t), which
waits for all inodes' flush caps. It's suboptimal, this patch
makes Client::_fsync() wait for flushing caps which belong to
the fsync inode.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/Client.cc
src/client/Client.h