Revert "block: add __init to elv_register"
authorJens Axboe <axboe@fb.com>
Sun, 22 Jun 2014 22:32:48 +0000 (16:32 -0600)
committerJens Axboe <axboe@fb.com>
Sun, 22 Jun 2014 22:34:11 +0000 (16:34 -0600)
commite567bf7112518824830978d644dfb5a991e67d54
treec049e11e12b33283bff3e952d60541d8a3c980a9
parentd5bf02914ea3ecf28db4f830f136dc04146b2317
Revert "block: add __init to elv_register"

This reverts commit b5097e956a4d2919ee248d6481e4204c5568ed5c.

The original commit is buggy, we do use the registration functions
at runtime, for instance when loading IO schedulers through sysfs.

Reported-by: Damien Wyart <damien.wyart@gmail.com>
block/elevator.c
include/linux/elevator.h