block: move ->make_request_fn to struct block_device_operations
The make_request_fn is a little weird in that it sits directly in struct request_queue instead of an operation vector. Replace it with a block_device_operations method called submit_bio (which describes much better what it does). Also remove the request_queue argument to it, as the queue can be derived pretty trivially from the bio. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
e439ab710f
commit
c62b37d96b
@@ -596,6 +596,6 @@ static inline void blk_mq_cleanup_rq(struct request *rq)
|
||||
rq->q->mq_ops->cleanup_rq(rq);
|
||||
}
|
||||
|
||||
blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio);
|
||||
blk_qc_t blk_mq_submit_bio(struct bio *bio);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user