Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1315746
| From | Jaegeuk Kim <jaegeuk@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/4] f2fs: give scheduling point in shrinking path |
| Date | 2016-01-23 21:20 +0100 |
| Message-ID | <qUcP7-81a-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
It needs to give a chance to be rescheduled while shrinking slab entries. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> --- fs/f2fs/extent_cache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/f2fs/extent_cache.c b/fs/f2fs/extent_cache.c index ccd5c63..325825b 100644 --- a/fs/f2fs/extent_cache.c +++ b/fs/f2fs/extent_cache.c @@ -585,6 +585,8 @@ unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink) if (node_cnt + tree_cnt >= nr_shrink) goto unlock_out; + + cond_resched(); } up_write(&sbi->extent_tree_lock); @@ -631,6 +633,7 @@ free_node: if (node_cnt + tree_cnt >= nr_shrink) goto unlock_out; } + cond_resched(); } unlock_out: up_write(&sbi->extent_tree_lock); -- 2.6.3
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 1/4] f2fs: give scheduling point in shrinking path Jaegeuk Kim <jaegeuk@kernel.org> - 2016-01-23 21:20 +0100
csiph-web