Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251174
b: refs/heads/master
c: 1547010
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Jens Axboe committed May 24, 2011
1 parent 4263041 commit 3cc35fe
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 20359f27e8ff115f7cddf3da5b3a6cdcca2e650d
refs/heads/master: 1547010e6e15a3f44f49381246421a1e19de526e
6 changes: 5 additions & 1 deletion trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3973,8 +3973,12 @@ static void *cfq_init_queue(struct request_queue *q)
return NULL;

cfqd = kmalloc_node(sizeof(*cfqd), GFP_KERNEL | __GFP_ZERO, q->node);
if (!cfqd)
if (!cfqd) {
spin_lock(&cic_index_lock);
ida_remove(&cic_index_ida, i);
spin_unlock(&cic_index_lock);
return NULL;
}

/*
* Don't need take queue_lock in the routine, since we are
Expand Down

0 comments on commit 3cc35fe

Please sign in to comment.