Searched hist:"20 a3d61d46e1fb45efa6eb4637c0dcd3f00a14e9" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/f2fs/ |
H A D | file.c | diff 20a3d61d46e1fb45efa6eb4637c0dcd3f00a14e9 Thu Aug 04 07:13:03 CDT 2016 Chao Yu <yuchao0@huawei.com> f2fs: avoid potential deadlock in f2fs_move_file_range
Thread A Thread B - inode_lock fileA - inode_lock fileB - inode_lock fileA - inode_lock fileB
We may encounter above potential deadlock during moving file range in concurrent scenario. This patch fixes the issue by using inode_trylock instead.
Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
|