mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
elevator: add new field flags in struct elevator_queue
There are only one flag to indicate that elevator is registered currently, prepare to add a flag to disable wbt if default elevator is bfq. Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20221019121518.3865235-6-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -100,10 +100,12 @@ struct elevator_queue
|
||||
void *elevator_data;
|
||||
struct kobject kobj;
|
||||
struct mutex sysfs_lock;
|
||||
unsigned int registered:1;
|
||||
unsigned long flags;
|
||||
DECLARE_HASHTABLE(hash, ELV_HASH_BITS);
|
||||
};
|
||||
|
||||
#define ELEVATOR_FLAG_REGISTERED 0
|
||||
|
||||
/*
|
||||
* block elevator interface
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user