Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2963
b: refs/heads/master
c: 01890a4
h: refs/heads/master
i:
  2961: 7083b8f
  2959: 89c8d00
v: v3
  • Loading branch information
Benjamin LaHaise authored and Linus Torvalds committed Jun 23, 2005
1 parent 9998e5a commit 678fa05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 8476994af7bd9352ecdf61ba760f7397f54e30a1
refs/heads/master: 01890a4c120f68366441bf5e193d1b9dd543d4d0
3 changes: 2 additions & 1 deletion trunk/mm/mempool.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void * mempool_alloc(mempool_t *pool, unsigned int __nocast gfp_mask)
{
void *element;
unsigned long flags;
DEFINE_WAIT(wait);
wait_queue_t wait;
int gfp_temp;

might_sleep_if(gfp_mask & __GFP_WAIT);
Expand Down Expand Up @@ -235,6 +235,7 @@ void * mempool_alloc(mempool_t *pool, unsigned int __nocast gfp_mask)

/* Now start performing page reclaim */
gfp_temp = gfp_mask;
init_wait(&wait);
prepare_to_wait(&pool->wait, &wait, TASK_UNINTERRUPTIBLE);
smp_mb();
if (!pool->curr_nr)
Expand Down

0 comments on commit 678fa05

Please sign in to comment.