]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix to avoid potential race on sbi->unusable_block_count access/update
authorChao Yu <yuchao0@huawei.com>
Sun, 5 May 2019 03:40:46 +0000 (11:40 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 9 May 2019 04:23:13 +0000 (21:23 -0700)
commit40a68ab627ab2073ab97e14e021a7297e380c3b9
tree161bfa38f995f3fceae4c60d4d9ba1f85384a7f2
parentd57574172de0ff2236c831a12d99e1199d69b767
f2fs: fix to avoid potential race on sbi->unusable_block_count access/update

Use sbi.stat_lock to protect sbi->unusable_block_count accesss/udpate, in
order to avoid potential race on it.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/segment.c
fs/f2fs/super.c