diff options
author | Christoph Hellwig <hch@lst.de> | 2016-07-19 12:31:51 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-07-21 02:38:32 +0300 |
commit | 98d61d5b1a65a9df7cb3d9605f5d37d3dbbb4b5e (patch) | |
tree | e67f98b6b8125835d3d085f80e4149a29e6c9022 /block/blk-core.c | |
parent | 0c4de0f33b0a86a426c0c3958cd40d8c82ede8d2 (diff) | |
download | linux-98d61d5b1a65a9df7cb3d9605f5d37d3dbbb4b5e.tar.xz |
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 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 4d8794925fe9..a2230186c36d 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1363,7 +1363,7 @@ struct request *blk_make_request(struct request_queue *q, struct bio *bio, int ret; blk_queue_bounce(q, &bounce_bio); - ret = blk_rq_append_bio(q, rq, bounce_bio); + ret = blk_rq_append_bio(rq, bounce_bio); if (unlikely(ret)) { blk_put_request(rq); return ERR_PTR(ret); |