diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-05-12 13:51:34 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-07-21 12:37:18 +0200 |
| commit | b40d1880039d42f0b4a666c6c7932e9f871ae460 (patch) | |
| tree | 39082fb353bdfc6f02828f4d46db91840d675716 /Documentation/CodingStyle | |
| parent | 654193e3d94c5eacd88c30a9465cd7b742d61fad (diff) | |
f2fs: avoid f2fs_lock_op for IPU writes
Currently, if we do get_node_of_data before f2fs_lock_op, there may be dead lock
as follows, where process A would be in infinite loop, and B will NOT be awaked.
Process A(cp): Process B:
f2fs_lock_all(sbi)
get_dnode_of_data <---- lock dn.node_page
flush_nodes f2fs_lock_op
So, this patch adds f2fs_trylock_op to avoid f2fs_lock_op done by IPU.
Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'Documentation/CodingStyle')
0 files changed, 0 insertions, 0 deletions
