diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-10-27 11:36:06 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-11-02 23:36:48 +0100 |
commit | 68cd5b4b7612c2956d8553dfb39490b29f32566d (patch) | |
tree | e66461c4e1241a3dc5797a650a16683470185140 /fs/ceph/super.h | |
parent | ceph: add request to i_unsafe_dirops when getting unsafe reply (diff) | |
download | linux-68cd5b4b7612c2956d8553dfb39490b29f32566d.tar.xz linux-68cd5b4b7612c2956d8553dfb39490b29f32566d.zip |
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/super.h')
-rw-r--r-- | fs/ceph/super.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index 2f2460d23a06..75b7d125ce66 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -342,6 +342,7 @@ struct ceph_inode_info { struct list_head i_unsafe_writes; /* uncommitted sync writes */ struct list_head i_unsafe_dirops; /* uncommitted mds dir ops */ + struct list_head i_unsafe_iops; /* uncommitted mds inode ops */ spinlock_t i_unsafe_lock; struct ceph_snap_realm *i_snap_realm; /* snap realm (if caps) */ |