summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorSatya Tangirala <satyat@google.com>2021-02-01 08:10:18 +0300
committerMike Snitzer <snitzer@redhat.com>2021-02-11 17:45:25 +0300
commit9355a9eb21a5c9b859ec838beb1874eef2e2a6d9 (patch)
tree115efa910dae43f1854cdc7a0157d9e7f85aaf1d /block
parentaa6ce87a768226802f9a231b3909fe81c503852c (diff)
downloadlinux-9355a9eb21a5c9b859ec838beb1874eef2e2a6d9.tar.xz
dm: support key eviction from keyslot managers of underlying devices
Now that device mapper supports inline encryption, add the ability to evict keys from all underlying devices. When an upper layer requests a key eviction, we simply iterate through all underlying devices and evict that key from each device. Co-developed-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Satya Tangirala <satyat@google.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-crypto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-crypto.c b/block/blk-crypto.c
index 09fcb18fa778..c5bdaafffa29 100644
--- a/block/blk-crypto.c
+++ b/block/blk-crypto.c
@@ -409,3 +409,4 @@ int blk_crypto_evict_key(struct request_queue *q,
*/
return blk_crypto_fallback_evict_key(key);
}
+EXPORT_SYMBOL_GPL(blk_crypto_evict_key);