diff options
author | Junxiao Bi <junxiao.bi@oracle.com> | 2016-07-26 15:21:32 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-26 16:19:19 -0700 |
commit | 0b492f68bb28c1ecb45cfdc4522074df26c6109d (patch) | |
tree | bb0decff841cad90f4c8f8dad3fa4d6b4619c886 /fs/ocfs2/sysfile.h | |
parent | 191df2b51303d62f95ccd8552e09dcd78eaa1a05 (diff) | |
download | linux-0b492f68bb28c1ecb45cfdc4522074df26c6109d.tar.gz linux-0b492f68bb28c1ecb45cfdc4522074df26c6109d.tar.xz |
ocfs2: improve recovery performance
Journal replay will be run when performing recovery for a dead node. To
avoid the stale cache impact, all blocks of dead node's journal inode
were reloaded from disk. This hurts the performance. Check whether one
block is cached before reloading it can improve performance a lot. In
my test env, the time doing recovery was improved from 120s to 1s.
[akpm@linux-foundation.org: clean up the for loop p_blkno handling]
Link: http://lkml.kernel.org/r/1466155682-24656-1-git-send-email-junxiao.bi@oracle.com
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: "Gang He" <ghe@suse.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/sysfile.h')
0 files changed, 0 insertions, 0 deletions