diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-05-01 08:47:44 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-05-01 08:47:44 -0700 | 
| commit | bf61c8840efe60fd8f91446860b63338fb424158 (patch) | |
| tree | 7a71832407a4f0d6346db773343f4c3ae2257b19 /include/linux/elevator.h | |
| parent | 5846115b30f3a881e542c8bfde59a699c1c13740 (diff) | |
| parent | 0c6a61657da78098472fd0eb71cc01f2387fa1bb (diff) | |
| download | olio-linux-3.10-bf61c8840efe60fd8f91446860b63338fb424158.tar.xz olio-linux-3.10-bf61c8840efe60fd8f91446860b63338fb424158.zip  | |
Merge branch 'next' into for-linus
Prepare first set of updates for 3.10 merge window.
Diffstat (limited to 'include/linux/elevator.h')
| -rw-r--r-- | include/linux/elevator.h | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/elevator.h b/include/linux/elevator.h index c03af7687bb..acd0312d46f 100644 --- a/include/linux/elevator.h +++ b/include/linux/elevator.h @@ -2,6 +2,7 @@  #define _LINUX_ELEVATOR_H  #include <linux/percpu.h> +#include <linux/hashtable.h>  #ifdef CONFIG_BLOCK @@ -96,6 +97,8 @@ struct elevator_type  	struct list_head list;  }; +#define ELV_HASH_BITS 6 +  /*   * each queue has an elevator_queue associated with it   */ @@ -105,8 +108,8 @@ struct elevator_queue  	void *elevator_data;  	struct kobject kobj;  	struct mutex sysfs_lock; -	struct hlist_head *hash;  	unsigned int registered:1; +	DECLARE_HASHTABLE(hash, ELV_HASH_BITS);  };  /* @@ -138,6 +141,7 @@ extern void elv_drain_elevator(struct request_queue *);  /*   * io scheduler registration   */ +extern void __init load_default_elevator_module(void);  extern int elv_register(struct elevator_type *);  extern void elv_unregister(struct elevator_type *); @@ -206,5 +210,9 @@ enum {  	INIT_LIST_HEAD(&(rq)->csd.list);	\  	} while (0) +#else /* CONFIG_BLOCK */ + +static inline void load_default_elevator_module(void) { } +  #endif /* CONFIG_BLOCK */  #endif  |