Skip to content
Snippets Groups Projects
Commit 78c23e9d authored by komaln's avatar komaln
Browse files

b=12475

r=Adilger, Nathan.

Prevent machine freeze when echo into proc/fs/lustre/llite/*/extents_stats
parent 1f4ad316
No related merge requests found
......@@ -87,7 +87,7 @@ static struct ll_sb_info *ll_init_sbi(void)
INIT_LIST_HEAD(&sbi->ll_deathrow);
spin_lock_init(&sbi->ll_deathrow_lock);
#endif
for (i = 0; i < LL_PROCESS_HIST_MAX; i++) {
for (i = 0; i <= LL_PROCESS_HIST_MAX; i++) {
spin_lock_init(&sbi->ll_rw_extents_info.pp_extents[i].pp_r_hist.oh_lock);
spin_lock_init(&sbi->ll_rw_extents_info.pp_extents[i].pp_w_hist.oh_lock);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment