Skip to content

Commit

Permalink
Merge 'for-linus' branch of rsync://rsync.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/git/axboe/linux-2.6-block
  • Loading branch information
Linus Torvalds committed Jun 17, 2005
2 parents 794f5bf + db3b584 commit dfd11c2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1202,13 +1202,16 @@ __cfq_get_queue(struct cfq_data *cfqd, unsigned long key, int gfp_mask)
if (new_cfqq) {
cfqq = new_cfqq;
new_cfqq = NULL;
} else if (gfp_mask & __GFP_WAIT) {
} else {
spin_unlock_irq(cfqd->queue->queue_lock);
new_cfqq = kmem_cache_alloc(cfq_pool, gfp_mask);
spin_lock_irq(cfqd->queue->queue_lock);

if (!new_cfqq && !(gfp_mask & __GFP_WAIT))
goto out;

goto retry;
} else
goto out;
}

memset(cfqq, 0, sizeof(*cfqq));

Expand Down

0 comments on commit dfd11c2

Please sign in to comment.