]> Git Repo - linux.git/commit
f2fs: avoid potential deadlock in f2fs_move_file_range
authorChao Yu <[email protected]>
Thu, 4 Aug 2016 12:13:03 +0000 (20:13 +0800)
committerJaegeuk Kim <[email protected]>
Fri, 19 Aug 2016 02:15:08 +0000 (11:15 +0900)
commit20a3d61d46e1fb45efa6eb4637c0dcd3f00a14e9
treeb31648702d4d9267f5d0f078c5db9ce9aad082f2
parentfe8494bfc8c2914fca821d4ae994aef039be5cf1
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 <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
fs/f2fs/file.c
This page took 0.052331 seconds and 4 git commands to generate.