ceph: make fsync() wait unsafe requests that created/modified inode
authorYan, Zheng <zyan@redhat.com>
Tue, 27 Oct 2015 10:36:06 +0000 (18:36 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Nov 2015 22:36:48 +0000 (23:36 +0100)
commit68cd5b4b7612c2956d8553dfb39490b29f32566d
treee66461c4e1241a3dc5797a650a16683470185140
parent4c06ace81a60636dec358c288ef6aaf3aa6dc599
ceph: make fsync() wait unsafe requests that created/modified inode

If we get a unsafe reply for request that created/modified inode,
add the unsafe request to a list in the newly created/modified
inode. So we can make fsync() wait these unsafe requests.

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