Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309618
b: refs/heads/master
c: 3c9c708
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and Jens Axboe committed May 31, 2012
1 parent b907ebd commit ecb36ec
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: b77874c9699522540e65aa4291e37a7e43533bf3
refs/heads/master: 3c9c708c9fc967e389f85bc735e4c1f65d67334e
6 changes: 5 additions & 1 deletion trunk/block/blk-ioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ void ioc_clear_queue(struct request_queue *q)
int create_task_io_context(struct task_struct *task, gfp_t gfp_flags, int node)
{
struct io_context *ioc;
int ret;

ioc = kmem_cache_alloc_node(iocontext_cachep, gfp_flags | __GFP_ZERO,
node);
Expand Down Expand Up @@ -262,9 +263,12 @@ int create_task_io_context(struct task_struct *task, gfp_t gfp_flags, int node)
task->io_context = ioc;
else
kmem_cache_free(iocontext_cachep, ioc);

ret = task->io_context ? 0 : -EBUSY;

task_unlock(task);

return 0;
return ret;
}

/**
Expand Down

0 comments on commit ecb36ec

Please sign in to comment.