From: Mikulas Patocka <mpatocka@redhat.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org,
Linlin Zhang <linlin.zhang@oss.qualcomm.com>,
ebiggers@kernel.org, linux-kernel@vger.kernel.org,
adrianvovk@gmail.com, dm-devel@lists.linux.dev,
quic_mdalam@quicinc.com, gmazyland@gmail.com,
israelr@nvidia.com
Subject: Re: [PATCH v1 1/3] block: export blk-crypto symbols required by dm-inlinecrypt
Date: Mon, 9 Mar 2026 15:01:18 +0100 (CET) [thread overview]
Message-ID: <4fe2e556-2190-0cc1-08b3-96046432d48d@redhat.com> (raw)
In-Reply-To: <20260304121729.1532469-2-linlin.zhang@oss.qualcomm.com>
Hi Jens
Would you please ack this block layer patch, so that I can add it to the
device mapper tree?
Mikulas
On Wed, 4 Mar 2026, Linlin Zhang wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> bio_crypt_set_ctx(), blk_crypto_init_key(), and
> blk_crypto_start_using_key() are needed to use inline encryption; see
> Documentation/block/inline-encryption.rst. Export them so that
> dm-inlinecrypt can use them. The only reason these weren't exported
> before was that inline encryption was previously used only by fs/crypto/
> which is built-in code.
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
> block/blk-crypto.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/block/blk-crypto.c b/block/blk-crypto.c
> index 856d3c5b1fa0..40a99a859748 100644
> --- a/block/blk-crypto.c
> +++ b/block/blk-crypto.c
> @@ -116,6 +116,7 @@ void bio_crypt_set_ctx(struct bio *bio, const struct blk_crypto_key *key,
>
> bio->bi_crypt_context = bc;
> }
> +EXPORT_SYMBOL_GPL(bio_crypt_set_ctx);
>
> void __bio_crypt_free_ctx(struct bio *bio)
> {
> @@ -349,6 +350,7 @@ int blk_crypto_init_key(struct blk_crypto_key *blk_key,
>
> return 0;
> }
> +EXPORT_SYMBOL_GPL(blk_crypto_init_key);
>
> bool blk_crypto_config_supported_natively(struct block_device *bdev,
> const struct blk_crypto_config *cfg)
> @@ -399,6 +401,7 @@ int blk_crypto_start_using_key(struct block_device *bdev,
> }
> return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode);
> }
> +EXPORT_SYMBOL_GPL(blk_crypto_start_using_key);
>
> /**
> * blk_crypto_evict_key() - Evict a blk_crypto_key from a block_device
> --
> 2.34.1
>
next prev parent reply other threads:[~2026-03-09 14:01 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-04 12:17 [PATCH v1 0/3] dm-inlinecrypt: add target for inline block device encryption Linlin Zhang
2026-03-04 12:17 ` [PATCH v1 1/3] block: export blk-crypto symbols required by dm-inlinecrypt Linlin Zhang
2026-03-09 14:01 ` Mikulas Patocka [this message]
2026-03-09 15:05 ` Jens Axboe
2026-03-09 16:12 ` Mikulas Patocka
2026-03-04 12:17 ` [PATCH v1 2/3] dm-inlinecrypt: add target for inline block device encryption Linlin Zhang
2026-03-04 13:11 ` Milan Broz
2026-03-25 11:27 ` Linlin Zhang
2026-03-12 7:01 ` Eric Biggers
2026-03-13 13:25 ` Mikulas Patocka
2026-03-13 15:27 ` Milan Broz
2026-03-25 11:57 ` Linlin Zhang
2026-03-25 15:07 ` Milan Broz
2026-03-25 6:55 ` Linlin Zhang
2026-03-04 12:17 ` [PATCH v1 3/3] dm-inlinecrypt: Expose inline crypto caps to the device Linlin Zhang
2026-03-12 6:35 ` Eric Biggers
2026-03-13 13:19 ` Mikulas Patocka
2026-03-25 6:38 ` Linlin Zhang
2026-03-04 13:06 ` [PATCH v1 0/3] dm-inlinecrypt: add target for inline block device encryption Christoph Hellwig
2026-03-04 18:09 ` Adrian Vovk
[not found] ` <CAAdYy_mSB4U39Onwa=V2e2XB0sJXV6tCGkzwV2-z7ZtMcm+8zg@mail.gmail.com>
2026-03-05 14:38 ` Christoph Hellwig
2026-03-25 7:04 ` Linlin Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4fe2e556-2190-0cc1-08b3-96046432d48d@redhat.com \
--to=mpatocka@redhat.com \
--cc=adrianvovk@gmail.com \
--cc=axboe@kernel.dk \
--cc=dm-devel@lists.linux.dev \
--cc=ebiggers@kernel.org \
--cc=gmazyland@gmail.com \
--cc=israelr@nvidia.com \
--cc=linlin.zhang@oss.qualcomm.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_mdalam@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®