]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix 'wait unsafe requests' code in _fsync()
authorYan, Zheng <zyan@redhat.com>
Tue, 27 Oct 2015 06:53:26 +0000 (14:53 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 24 Dec 2015 07:49:47 +0000 (15:49 +0800)
commita7501c9ac6cdcdcd68d0726a3b5f89402354b0b9
treef67d8dc7b6398545fee76d49247597fa1e9b608e
parent8d2df89ae22031226b9e0268d78fc17aeb73c957
client: fix 'wait unsafe requests' code in _fsync()

Unsafe requests in Inode::unsafe_ops are not sorted in tid order.
So checking first unsafe request's tid does not make sense.

Unsafe requests are requests that are being journalled, they are
arranged in order of journal position. So waiting for the latest
unsafe requests should be enough.

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