dm: support key eviction from keyslot managers of underlying devices
authorSatya Tangirala <satyat@google.com>
Mon, 1 Feb 2021 05:10:18 +0000 (05:10 +0000)
committerMike Snitzer <snitzer@redhat.com>
Thu, 11 Feb 2021 14:45:25 +0000 (09:45 -0500)
commit9355a9eb21a5c9b859ec838beb1874eef2e2a6d9
tree115efa910dae43f1854cdc7a0157d9e7f85aaf1d
parentaa6ce87a768226802f9a231b3909fe81c503852c
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>
block/blk-crypto.c
drivers/md/dm-table.c