]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: fix a deadlock for summary page lock vs. sentry_lock
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 29 May 2015 01:19:17 +0000 (18:19 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 1 Jun 2015 23:21:09 +0000 (16:21 -0700)
commit9236cac5666ea8b3a3b92b132a046c200b99dca8
tree76cd720f7405d4ee8042ac86176c1ee2a713ff38
parente5e0906b6b4c517a8622f2ff196c19cbd1068644
f2fs: fix a deadlock for summary page lock vs. sentry_lock

In f2fs_gc:                      In f2fs_replace_block:
 - lock_page(sum_page)
  - check_valid_map()            - mutex_lock(sentry_lock)
   - mutex_lock(sentry_lock)     - change_curseg()
                                  - lock_page(sum_page)

This patch fixes the deadlock condition.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c