summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/request.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-03-27 09:30:10 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-27 17:23:43 +0100
commitff27668ce8092c74965f21b5c02ebc6b6764db95 (patch)
treee686f78ff3aede828ed9a51e8067f06412aaddb7 /drivers/md/bcache/request.h
parentnull_blk: use blk_mq_init_queue_data (diff)
downloadlinux-ff27668ce8092c74965f21b5c02ebc6b6764db95.tar.xz
linux-ff27668ce8092c74965f21b5c02ebc6b6764db95.zip
bcache: pass the make_request methods to blk_queue_make_request
bcache is the only driver not actually passing its make_request methods to blk_queue_make_request, but instead just sets them up manually a little later. Make bcache follow the common way of setting up make_request based queues. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/request.h')
-rw-r--r--drivers/md/bcache/request.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/bcache/request.h b/drivers/md/bcache/request.h
index c64dbd7a91aa..bb005c93dd72 100644
--- a/drivers/md/bcache/request.h
+++ b/drivers/md/bcache/request.h
@@ -37,7 +37,10 @@ unsigned int bch_get_congested(const struct cache_set *c);
void bch_data_insert(struct closure *cl);
void bch_cached_dev_request_init(struct cached_dev *dc);
+blk_qc_t cached_dev_make_request(struct request_queue *q, struct bio *bio);
+
void bch_flash_dev_request_init(struct bcache_device *d);
+blk_qc_t flash_dev_make_request(struct request_queue *q, struct bio *bio);
extern struct kmem_cache *bch_search_cache;