Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199915
b: refs/heads/master
c: 1abec4f
h: refs/heads/master
i:
  199913: d600186
  199911: 69df827
v: v3
  • Loading branch information
Mike Snitzer authored and Jens Axboe committed Jun 4, 2010
1 parent 657ff05 commit 83621fd
Show file tree
Hide file tree
Showing 3 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: c86d1b8ae622e1ea5d20e98bd72fbd7d9dd69016
refs/heads/master: 1abec4fdbb142e3ccb6ce99832fae42129134a96
3 changes: 3 additions & 0 deletions trunk/block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,9 @@ static int blk_init_free_list(struct request_queue *q)
{
struct request_list *rl = &q->rq;

if (unlikely(rl->rq_pool))
return 0;

rl->count[BLK_RW_SYNC] = rl->count[BLK_RW_ASYNC] = 0;
rl->starved[BLK_RW_SYNC] = rl->starved[BLK_RW_ASYNC] = 0;
rl->elvpriv = 0;
Expand Down
6 changes: 4 additions & 2 deletions trunk/block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,11 @@ int elevator_init(struct request_queue *q, char *name)
{
struct elevator_type *e = NULL;
struct elevator_queue *eq;
int ret = 0;
void *data;

if (unlikely(q->elevator))
return 0;

INIT_LIST_HEAD(&q->queue_head);
q->last_merge = NULL;
q->end_sector = 0;
Expand Down Expand Up @@ -284,7 +286,7 @@ int elevator_init(struct request_queue *q, char *name)
}

elevator_attach(q, eq, data);
return ret;
return 0;
}
EXPORT_SYMBOL(elevator_init);

Expand Down

0 comments on commit 83621fd

Please sign in to comment.