]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fscache: Wait for completion of object initialization
authorYunchuan Wen <yunchuanwen@ubuntukylin.com>
Thu, 26 Dec 2013 14:29:28 +0000 (06:29 -0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 3 Apr 2014 02:33:53 +0000 (10:33 +0800)
commitf9f22299defb22d20894e5b13c11355ed63f4522
treeeccd9e8d0da4c389d603408cf5a4360a62053635
parent221152ecde7b17cbf8d09c4de9e274b9f02ae887
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>
fs/ceph/cache.c