aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 996549d71923..20a3710a481b 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -360,9 +360,10 @@ struct request_queue
360 unsigned int flush_flags; 360 unsigned int flush_flags;
361 361
362 unsigned int ordered, next_ordered, ordseq; 362 unsigned int ordered, next_ordered, ordseq;
363 int orderr, ordcolor; 363 int orderr;
364 struct request pre_flush_rq, bar_rq, post_flush_rq; 364 struct request bar_rq;
365 struct request *orig_bar_rq; 365 struct request *orig_bar_rq;
366 struct list_head pending_barriers;
366 367
367 struct mutex sysfs_lock; 368 struct mutex sysfs_lock;
368 369
@@ -491,12 +492,11 @@ enum {
491 /* 492 /*
492 * Ordered operation sequence 493 * Ordered operation sequence
493 */ 494 */
494 QUEUE_ORDSEQ_STARTED = 0x01, /* flushing in progress */ 495 QUEUE_ORDSEQ_STARTED = (1 << 0), /* flushing in progress */
495 QUEUE_ORDSEQ_DRAIN = 0x02, /* waiting for the queue to be drained */ 496 QUEUE_ORDSEQ_PREFLUSH = (1 << 1), /* pre-flushing in progress */
496 QUEUE_ORDSEQ_PREFLUSH = 0x04, /* pre-flushing in progress */ 497 QUEUE_ORDSEQ_BAR = (1 << 2), /* barrier write in progress */
497 QUEUE_ORDSEQ_BAR = 0x08, /* original barrier req in progress */ 498 QUEUE_ORDSEQ_POSTFLUSH = (1 << 3), /* post-flushing in progress */
498 QUEUE_ORDSEQ_POSTFLUSH = 0x10, /* post-flushing in progress */ 499 QUEUE_ORDSEQ_DONE = (1 << 4),
499 QUEUE_ORDSEQ_DONE = 0x20,
500}; 500};
501 501
502#define blk_queue_plugged(q) test_bit(QUEUE_FLAG_PLUGGED, &(q)->queue_flags) 502#define blk_queue_plugged(q) test_bit(QUEUE_FLAG_PLUGGED, &(q)->queue_flags)
@@ -869,9 +869,6 @@ extern void blk_queue_rq_timed_out(struct request_queue *, rq_timed_out_fn *);
869extern void blk_queue_rq_timeout(struct request_queue *, unsigned int); 869extern void blk_queue_rq_timeout(struct request_queue *, unsigned int);
870extern void blk_queue_flush(struct request_queue *q, unsigned int flush); 870extern void blk_queue_flush(struct request_queue *q, unsigned int flush);
871extern struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev); 871extern struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev);
872extern unsigned blk_ordered_cur_seq(struct request_queue *);
873extern unsigned blk_ordered_req_seq(struct request *);
874extern bool blk_ordered_complete_seq(struct request_queue *, unsigned, int);
875 872
876extern int blk_rq_map_sg(struct request_queue *, struct request *, struct scatterlist *); 873extern int blk_rq_map_sg(struct request_queue *, struct request *, struct scatterlist *);
877extern void blk_dump_rq_flags(struct request *, char *); 874extern void blk_dump_rq_flags(struct request *, char *);