diff options
Diffstat (limited to 'include/linux/blkdev.h')
| -rw-r--r-- | include/linux/blkdev.h | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 608d577734c2..2f7b43444c5f 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -342,7 +342,6 @@ static inline int blkdev_zone_mgmt_ioctl(struct block_device *bdev,   */  struct blk_independent_access_range {  	struct kobject		kobj; -	struct request_queue	*queue;  	sector_t		sector;  	sector_t		nr_sectors;  }; @@ -482,7 +481,6 @@ struct request_queue {  #endif /* CONFIG_BLK_DEV_ZONED */  	int			node; -	struct mutex		debugfs_mutex;  #ifdef CONFIG_BLK_DEV_IO_TRACE  	struct blk_trace __rcu	*blk_trace;  #endif @@ -526,11 +524,12 @@ struct request_queue {  	struct bio_set		bio_split;  	struct dentry		*debugfs_dir; - -#ifdef CONFIG_BLK_DEBUG_FS  	struct dentry		*sched_debugfs_dir;  	struct dentry		*rqos_debugfs_dir; -#endif +	/* +	 * Serializes all debugfs metadata operations using the above dentries. +	 */ +	struct mutex		debugfs_mutex;  	bool			mq_sysfs_init_done; @@ -575,6 +574,7 @@ struct request_queue {  #define QUEUE_FLAG_RQ_ALLOC_TIME 27	/* record rq->alloc_time_ns */  #define QUEUE_FLAG_HCTX_ACTIVE	28	/* at least one blk-mq hctx is active */  #define QUEUE_FLAG_NOWAIT       29	/* device supports NOWAIT */ +#define QUEUE_FLAG_SQ_SCHED     30	/* single queue style io dispatch */  #define QUEUE_FLAG_MQ_DEFAULT	((1 << QUEUE_FLAG_IO_STAT) |		\  				 (1 << QUEUE_FLAG_SAME_COMP) |		\ @@ -616,6 +616,7 @@ bool blk_queue_flag_test_and_set(unsigned int flag, struct request_queue *q);  #define blk_queue_pm_only(q)	atomic_read(&(q)->pm_only)  #define blk_queue_registered(q)	test_bit(QUEUE_FLAG_REGISTERED, &(q)->queue_flags)  #define blk_queue_nowait(q)	test_bit(QUEUE_FLAG_NOWAIT, &(q)->queue_flags) +#define blk_queue_sq_sched(q)	test_bit(QUEUE_FLAG_SQ_SCHED, &(q)->queue_flags)  extern void blk_set_pm_only(struct request_queue *q);  extern void blk_clear_pm_only(struct request_queue *q); @@ -1006,8 +1007,6 @@ void disk_set_independent_access_ranges(struct gendisk *disk,   */  /* Supports zoned block devices sequential write constraint */  #define ELEVATOR_F_ZBD_SEQ_WRITE	(1U << 0) -/* Supports scheduling on multiple hardware queues */ -#define ELEVATOR_F_MQ_AWARE		(1U << 1)  extern void blk_queue_required_elevator_features(struct request_queue *q,  						 unsigned int features);  |