Re: short freezing while file re-creation

Oleg Drokin (green@namesys.com)
Fri, 6 Jun 2003 20:02:17 +0400


Hello!

On Fri, Jun 06, 2003 at 05:24:54PM +0200, Stephan von Krawczynski wrote:

> while experimenting around my other problem I noticed my box freezes for some
> seconds while tar is re-creating an archive of around 70 GB size on a reiserfs
> with 3ware-connected device.
> This is experienced with 2.4.21-rc7. Reproducable via:
> create BIG tar archive file (my size 70 GB) on a reiserfs
> re-create same archive and watch box gone dead while the old archive is zapped.
> (Gone dead means: mouse froze, keyboard froze, X froze)

Hm, I will try .

Wild guess: does this patch helps? (untessted, not even compiled, but should be safe )

Bye,
Oleg
===== stree.c 1.21 vs edited =====
--- 1.21/fs/reiserfs/stree.c Tue Mar 4 19:48:52 2003
+++ edited/fs/reiserfs/stree.c Fri Jun 6 20:01:29 2003
@@ -1773,6 +1773,8 @@
journal_begin(th, p_s_inode->i_sb, orig_len_alloc) ;
reiserfs_update_inode_transaction(p_s_inode) ;
}
+ if (current->need_resched)
+ schedule() ;
} while ( n_file_size > ROUND_UP (n_new_file_size) &&
search_for_position_by_key(p_s_inode->i_sb, &s_item_key, &s_search_path) == POSITION_FOUND ) ;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/