Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33764
b: refs/heads/master
c: 0b1d647
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Mironchik authored and Linus Torvalds committed Sep 1, 2006
1 parent 6b3e3be commit efb61d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e5f5e5cd65eec6ce5c24a9c29f3e52673b121a6
refs/heads/master: 0b1d647a02c5a1b67d45287eeb6cb3b2219c41c3
9 changes: 7 additions & 2 deletions trunk/mm/mempool.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,13 @@ void * mempool_alloc(mempool_t *pool, gfp_t gfp_mask)
init_wait(&wait);
prepare_to_wait(&pool->wait, &wait, TASK_UNINTERRUPTIBLE);
smp_mb();
if (!pool->curr_nr)
io_schedule();
if (!pool->curr_nr) {
/*
* FIXME: this should be io_schedule(). The timeout is there
* as a workaround for some DM problems in 2.6.18.
*/
io_schedule_timeout(5*HZ);
}
finish_wait(&pool->wait, &wait);

goto repeat_alloc;
Expand Down

0 comments on commit efb61d2

Please sign in to comment.