diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index cbbfd98ad4a3..8bd2a271b2d8 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -364,6 +364,7 @@ struct request_queue | |||
364 | * for flush operations | 364 | * for flush operations |
365 | */ | 365 | */ |
366 | unsigned int flush_flags; | 366 | unsigned int flush_flags; |
367 | unsigned int flush_not_queueable:1; | ||
367 | unsigned int flush_pending_idx:1; | 368 | unsigned int flush_pending_idx:1; |
368 | unsigned int flush_running_idx:1; | 369 | unsigned int flush_running_idx:1; |
369 | unsigned long flush_pending_since; | 370 | unsigned long flush_pending_since; |
@@ -843,6 +844,7 @@ extern void blk_queue_softirq_done(struct request_queue *, softirq_done_fn *); | |||
843 | extern void blk_queue_rq_timed_out(struct request_queue *, rq_timed_out_fn *); | 844 | extern void blk_queue_rq_timed_out(struct request_queue *, rq_timed_out_fn *); |
844 | extern void blk_queue_rq_timeout(struct request_queue *, unsigned int); | 845 | extern void blk_queue_rq_timeout(struct request_queue *, unsigned int); |
845 | extern void blk_queue_flush(struct request_queue *q, unsigned int flush); | 846 | extern void blk_queue_flush(struct request_queue *q, unsigned int flush); |
847 | extern void blk_queue_flush_queueable(struct request_queue *q, bool queueable); | ||
846 | extern struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev); | 848 | extern struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev); |
847 | 849 | ||
848 | extern int blk_rq_map_sg(struct request_queue *, struct request *, struct scatterlist *); | 850 | extern int blk_rq_map_sg(struct request_queue *, struct request *, struct scatterlist *); |
@@ -1111,6 +1113,11 @@ static inline unsigned int block_size(struct block_device *bdev) | |||
1111 | return bdev->bd_block_size; | 1113 | return bdev->bd_block_size; |
1112 | } | 1114 | } |
1113 | 1115 | ||
1116 | static inline bool queue_flush_queueable(struct request_queue *q) | ||
1117 | { | ||
1118 | return !q->flush_not_queueable; | ||
1119 | } | ||
1120 | |||
1114 | typedef struct {struct page *v;} Sector; | 1121 | typedef struct {struct page *v;} Sector; |
1115 | 1122 | ||
1116 | unsigned char *read_dev_sector(struct block_device *, sector_t, Sector *); | 1123 | unsigned char *read_dev_sector(struct block_device *, sector_t, Sector *); |