aboutsummaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-08-31 18:56:05 +0800
committerMister Oyster <oysterized@gmail.com>2017-10-04 15:35:26 +0200
commit11c74a94cb4925ccacc26bce3690240f9a71dbfe (patch)
tree34936a5a5b0ca5508037d15694f35e586e65baac /scripts/const_structs.checkpatch
parente051865e6996a932689965ba14e8e9a0def8186f (diff)
f2fs: avoid race in between atomic_read & atomic_inc
Previously, we will miss merging flush command during fsync due to below race condition: Thread A Thread B Thread C - f2fs_issue_flush - atomic_read(&issing_flush) - f2fs_issue_flush - atomic_read(&issing_flush) - f2fs_issue_flush - atomic_read(&issing_flush) - atomic_inc(&issing_flush) - atomic_inc(&issing_flush) - atomic_inc(&issing_flush) - submit_flush_wait - submit_flush_wait - submit_flush_wait It needs to use atomic_inc_return instead to avoid such race. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions