diff options
author | Christoph Hellwig <hch@lst.de> | 2016-07-19 11:31:51 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-07-20 17:38:32 -0600 |
commit | 98d61d5b1a65a9df7cb3d9605f5d37d3dbbb4b5e (patch) | |
tree | e67f98b6b8125835d3d085f80e4149a29e6c9022 /include/linux/blkdev.h | |
parent | 0c4de0f33b0a86a426c0c3958cd40d8c82ede8d2 (diff) | |
download | blackbird-op-linux-98d61d5b1a65a9df7cb3d9605f5d37d3dbbb4b5e.tar.gz blackbird-op-linux-98d61d5b1a65a9df7cb3d9605f5d37d3dbbb4b5e.zip |
block: simplify and export blk_rq_append_bio
The target SCSI passthrough backend is much better served with the low-level
blk_rq_append_bio construct then the helpers built on top of it, so export it.
Also use the opportunity to remove the pointless request_queue argument and
make the code flow a little more readable.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 156455cb07ad..706c8bf61c84 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -802,6 +802,7 @@ extern int blk_rq_prep_clone(struct request *rq, struct request *rq_src, extern void blk_rq_unprep_clone(struct request *rq); extern int blk_insert_cloned_request(struct request_queue *q, struct request *rq); +extern int blk_rq_append_bio(struct request *rq, struct bio *bio); extern void blk_delay_queue(struct request_queue *, unsigned long); extern void blk_queue_split(struct request_queue *, struct bio **, struct bio_set *); |