Commit f1fc4fee3bb163eebd0e1d16a8c84b66af03886e
Committed by
Yan, Zheng
1 parent
32d3e148dd
Exists in
master
and in
13 other branches
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>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
fs/ceph/cache.c