elevator: fix oops on early call to elevator_change()
[linux-2.6.git] / include / linux / elevator.h
index 926b503..4fd978e 100644 (file)
@@ -93,6 +93,7 @@ struct elevator_queue
        struct elevator_type *elevator_type;
        struct mutex sysfs_lock;
        struct hlist_head *hash;
+       unsigned int registered:1;
 };
 
 /*