diff options
author | Tejun Heo <tj@kernel.org> | 2010-09-03 05:56:16 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-09-10 06:35:36 -0400 |
commit | dd831006d5be7f74c3fe7aef82380c51c3637960 (patch) | |
tree | 30a86749f0c4f7980b2982dbde8bbcfff37b08f9 /include/linux/blkdev.h | |
parent | 9cbbdca44ae1a6f512ea1e2be11ced8bbb9d430a (diff) |
block: misc cleanups in barrier code
Make the following cleanups in preparation of barrier/flush update.
* blk_do_ordered() declaration is moved from include/linux/blkdev.h to
block/blk.h.
* blk_do_ordered() now returns pointer to struct request, with %NULL
meaning "try the next request" and ERR_PTR(-EAGAIN) "try again
later". The third case will be dropped with further changes.
* In the initialization of proxy barrier request, data direction is
already set by init_request_from_bio(). Drop unnecessary explicit
REQ_WRITE setting and move init_request_from_bio() above REQ_FUA
flag setting.
* add_request() is collapsed into __make_request().
These changes don't make any functional difference.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index e97911d4dec3..996549d71923 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -869,7 +869,6 @@ extern void blk_queue_rq_timed_out(struct request_queue *, rq_timed_out_fn *); | |||
869 | extern void blk_queue_rq_timeout(struct request_queue *, unsigned int); | 869 | extern void blk_queue_rq_timeout(struct request_queue *, unsigned int); |
870 | extern void blk_queue_flush(struct request_queue *q, unsigned int flush); | 870 | extern void blk_queue_flush(struct request_queue *q, unsigned int flush); |
871 | extern struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev); | 871 | extern struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev); |
872 | extern bool blk_do_ordered(struct request_queue *, struct request **); | ||
873 | extern unsigned blk_ordered_cur_seq(struct request_queue *); | 872 | extern unsigned blk_ordered_cur_seq(struct request_queue *); |
874 | extern unsigned blk_ordered_req_seq(struct request *); | 873 | extern unsigned blk_ordered_req_seq(struct request *); |
875 | extern bool blk_ordered_complete_seq(struct request_queue *, unsigned, int); | 874 | extern bool blk_ordered_complete_seq(struct request_queue *, unsigned, int); |