Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123299
b: refs/heads/master
c: 31dcfab
h: refs/heads/master
i:
  123297: aad63cc
  123295: 0e49285
v: v3
  • Loading branch information
Jens Axboe committed Dec 29, 2008
1 parent e61ed57 commit 7148b02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: b374d18a4bfce705e4a99ae9f501b53e86ecb283
refs/heads/master: 31dcfab0ae6eb0340d456931df4d478e17efc65d
10 changes: 4 additions & 6 deletions trunk/drivers/block/nbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,6 @@ static int __init nbd_init(void)

for (i = 0; i < nbds_max; i++) {
struct gendisk *disk = alloc_disk(1 << part_shift);
struct elevator_queue *old_e;
if (!disk)
goto out;
nbd_dev[i].disk = disk;
Expand All @@ -736,11 +735,10 @@ static int __init nbd_init(void)
put_disk(disk);
goto out;
}
old_e = disk->queue->elevator;
if (elevator_init(disk->queue, "deadline") == 0 ||
elevator_init(disk->queue, "noop") == 0) {
elevator_exit(old_e);
}
/*
* Tell the block layer that we are not a rotational device
*/
queue_flag_set_unlocked(QUEUE_FLAG_NONROT, disk->queue);
}

if (register_blkdev(NBD_MAJOR, "nbd")) {
Expand Down

0 comments on commit 7148b02

Please sign in to comment.