block: move blk_crypto_bio_prep() out of blk-mq.c
authorMing Lei <ming.lei@redhat.com>
Wed, 16 Feb 2022 04:45:08 +0000 (12:45 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 02:42:27 +0000 (19:42 -0700)
commit7f36b7d02a287ed18d02ae821868aa07b0235521
tree6a9d4213ed7d7c5373046ee587d08eab172df0fb
parenta650628bde77f6ac5b1d532092346feff7b58c52
block: move blk_crypto_bio_prep() out of blk-mq.c

blk_crypto_bio_prep() is called for both bio based and blk-mq drivers,
so move it out of blk-mq.c, then we can unify this kind of handling.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220216044514.2903784-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c