Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119165
b: refs/heads/master
c: 68aee07
h: refs/heads/master
i:
  119163: 42cb267
v: v3
  • Loading branch information
Zhaolei authored and Jens Axboe committed Nov 18, 2008
1 parent 39d9033 commit 9adce27
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 561ec68e4de7947167937c49c451728e6b19e63b
refs/heads/master: 68aee07f9bad2c830a898cf6d6bfc11ea24efc40
8 changes: 7 additions & 1 deletion trunk/drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,18 @@ static void do_blkif_request(struct request_queue *rq)
static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size)
{
struct request_queue *rq;
elevator_t *old_e;

rq = blk_init_queue(do_blkif_request, &blkif_io_lock);
if (rq == NULL)
return -1;

elevator_init(rq, "noop");
old_e = rq->elevator;
if (IS_ERR_VALUE(elevator_init(rq, "noop")))
printk(KERN_WARNING
"blkfront: Switch elevator failed, use default\n");
else
elevator_exit(old_e);

/* Hard sector size and max sectors impersonate the equiv. hardware. */
blk_queue_hardsect_size(rq, sector_size);
Expand Down

0 comments on commit 9adce27

Please sign in to comment.