Commit e567bf71 authored by Jens Axboe's avatar Jens Axboe

Revert "block: add __init to elv_register"

This reverts commit b5097e95.

The original commit is buggy, we do use the registration functions
at runtime, for instance when loading IO schedulers through sysfs.
Reported-by: default avatarDamien Wyart <damien.wyart@gmail.com>
parent d5bf0291
...@@ -825,7 +825,7 @@ void elv_unregister_queue(struct request_queue *q) ...@@ -825,7 +825,7 @@ void elv_unregister_queue(struct request_queue *q)
} }
EXPORT_SYMBOL(elv_unregister_queue); EXPORT_SYMBOL(elv_unregister_queue);
int __init elv_register(struct elevator_type *e) int elv_register(struct elevator_type *e)
{ {
char *def = ""; char *def = "";
......
...@@ -143,7 +143,7 @@ extern void elv_drain_elevator(struct request_queue *); ...@@ -143,7 +143,7 @@ extern void elv_drain_elevator(struct request_queue *);
* io scheduler registration * io scheduler registration
*/ */
extern void __init load_default_elevator_module(void); extern void __init load_default_elevator_module(void);
extern int __init elv_register(struct elevator_type *); extern int elv_register(struct elevator_type *);
extern void elv_unregister(struct elevator_type *); extern void elv_unregister(struct elevator_type *);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment