]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a72f9b62deec48b81b26a39417dfc2321476b3a
tree6a9d4213ed7d7c5373046ee587d08eab172df0fb
parent81fea885af8eb46b9e9ee023c65b4f3665dc54f7
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