linux/fs/ceph
Yunchuan Wen f1fc4fee3b ceph: fscache: Wait for completion of object initialization
The object store limit needs to be updated after writing,
and this can be done provided the corresponding object has already
been initialized. Current object initialization is done asynchrously,
which introduce a race if a file is opened, then immediately followed
by a writing, the initialization may have not completed, the code will
reach the ASSERT in fscache_submit_exclusive_op() to cause kernel
bug.

Tested-by: Milosz Tanski <milosz@adfin.com>
Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Signed-off-by: Min Chen <minchen@ubuntukylin.com>
Signed-off-by: Li Wang <liwang@ubuntukylin.com>
2014-04-03 10:33:53 +08:00
..
acl.c ceph: make ceph_forget_all_cached_acls() static inline 2014-02-17 12:37:12 -08:00
addr.c ceph: fix dout() compile warnings in ceph_filemap_fault() 2014-01-28 09:57:06 -08:00
cache.c ceph: fscache: Wait for completion of object initialization 2014-04-03 10:33:53 +08:00
cache.h ceph: fscache: add an interface to synchronize object store limit 2014-04-03 10:33:53 +08:00
caps.c ceph: add imported caps when handling cap export message 2014-01-21 16:30:31 +08:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c ceph: do not assume r_old_dentry[_dir] always set together 2014-04-03 10:33:53 +08:00
dir.c ceph: do not set r_old_dentry_dir on link() 2014-04-03 10:33:53 +08:00
export.c fs: encode_fh: return FILEID_INVALID if invalid fid_type 2013-02-26 02:46:10 -05:00
file.c ceph: fscache: Update object store limit after file writing 2014-04-03 10:33:53 +08:00
inode.c ceph: do not chain inode updates to parent fsync 2014-04-03 10:33:52 +08:00
ioctl.c ceph: do not chain inode updates to parent fsync 2014-04-03 10:33:52 +08:00
ioctl.h ceph: fully initialize new layout 2012-05-16 14:28:27 -05:00
Kconfig ceph: add acl for cephfs 2013-12-31 20:32:01 +02:00
locks.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2013-07-09 12:39:10 -07:00
Makefile ceph: add acl for cephfs 2013-12-31 20:32:01 +02:00
mds_client.c ceph: do not assume r_old_dentry[_dir] always set together 2014-04-03 10:33:53 +08:00
mds_client.h ceph: add open export target session helper 2014-01-21 16:30:30 +08:00
mdsmap.c ceph: tidy ceph_mdsmap_decode() a little 2013-07-01 09:52:02 -07:00
snap.c ceph: use ceph_create_snap_context() 2013-05-01 21:20:09 -07:00
strings.c ceph: handle session flush message 2014-01-21 13:29:33 +08:00
super.c ceph: add acl, noacl options for cephfs mount 2014-02-17 12:37:12 -08:00
super.h ceph: fix ceph_dir_llseek() 2014-04-03 10:33:52 +08:00
xattr.c ceph: do not chain inode updates to parent fsync 2014-04-03 10:33:52 +08:00