aboutsummaryrefslogtreecommitdiff
path: root/fs/mbcache.c
diff options
context:
space:
mode:
authorJaegeuk Kim2014-12-18 19:32:36 -0800
committerJaegeuk Kim2015-01-09 17:02:25 -0800
commitdd802406e396c22dfb5aa0d16196f04d515be49e (patch)
treedd7c8361203983936bc6ef5f6c61234a69eadfd0 /fs/mbcache.c
parentdb9f7c1a9561e998d6227bcc1c19bc4c1fbbca1b (diff)
f2fs: avoid double lock for cp_rwsem
The __f2fs_add_link is covered by cp_rwsem all the time. This calls init_inode_metadata, which conducts some acl operations including memory allocation with GFP_KERNEL previously. But, under memory pressure, f2fs_write_data_page can be called, which also grabs cp_rwsem too. In this case, this incurs a deadlock pointed by Chao. Thread #1 Thread #2 down_read down_write down_read -> here down_read should wait forever. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/mbcache.c')
0 files changed, 0 insertions, 0 deletions