commit | 57ed1e95babbd2df33f70eb820c7a9984199557b | [log] [tgz] |
---|---|---|
author | Wanpeng Li <wanpeng.li@linux.intel.com> | Mon Mar 09 11:00:55 2015 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Fri Apr 10 15:08:39 2015 -0700 |
tree | 3d277b6e2f932be5bca5ab8735b7ae60ebf28e13 | |
parent | e0150392ddfaaf5ccf338893f6db177a2c64a7ee [diff] |
f2fs: fix unlocked nat set cache operation nm_i->nat_tree_lock is used to sync both the operations of nat entry cache tree and nat set cache tree, however, it isn't held when flush nat entries during checkpoint which lead to potential race, this patch fix it by holding the lock when gang lookup nat set cache and delete item from nat set cache. Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>