diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/xen-blkfront.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index 2d19f0cc47f2..918ef725de41 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -338,18 +338,12 @@ wait: | |||
338 | static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size) | 338 | static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size) |
339 | { | 339 | { |
340 | struct request_queue *rq; | 340 | struct request_queue *rq; |
341 | elevator_t *old_e; | ||
342 | 341 | ||
343 | rq = blk_init_queue(do_blkif_request, &blkif_io_lock); | 342 | rq = blk_init_queue(do_blkif_request, &blkif_io_lock); |
344 | if (rq == NULL) | 343 | if (rq == NULL) |
345 | return -1; | 344 | return -1; |
346 | 345 | ||
347 | old_e = rq->elevator; | 346 | queue_flag_set_unlocked(QUEUE_FLAG_VIRT, rq); |
348 | if (IS_ERR_VALUE(elevator_init(rq, "noop"))) | ||
349 | printk(KERN_WARNING | ||
350 | "blkfront: Switch elevator failed, use default\n"); | ||
351 | else | ||
352 | elevator_exit(old_e); | ||
353 | 347 | ||
354 | /* Hard sector size and max sectors impersonate the equiv. hardware. */ | 348 | /* Hard sector size and max sectors impersonate the equiv. hardware. */ |
355 | blk_queue_hardsect_size(rq, sector_size); | 349 | blk_queue_hardsect_size(rq, sector_size); |