diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-10-27 13:36:06 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-11-03 01:36:48 +0300 |
commit | 68cd5b4b7612c2956d8553dfb39490b29f32566d (patch) | |
tree | e66461c4e1241a3dc5797a650a16683470185140 /fs/ceph/inode.c | |
parent | 4c06ace81a60636dec358c288ef6aaf3aa6dc599 (diff) | |
download | linux-68cd5b4b7612c2956d8553dfb39490b29f32566d.tar.xz |
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>
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r-- | fs/ceph/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 96d2bd829902..498dcfa2dcdb 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -452,6 +452,7 @@ struct inode *ceph_alloc_inode(struct super_block *sb) INIT_LIST_HEAD(&ci->i_unsafe_writes); INIT_LIST_HEAD(&ci->i_unsafe_dirops); + INIT_LIST_HEAD(&ci->i_unsafe_iops); spin_lock_init(&ci->i_unsafe_lock); ci->i_snap_realm = NULL; |