25b3bc709c
Add a resource-managed variant of blk_ksm_init() so that drivers don't have to worry about calling blk_ksm_destroy(). Note that the implementation uses a custom devres action to call blk_ksm_destroy() rather than switching the two allocations to be directly devres-managed, e.g. with devm_kmalloc(). This is because we need to keep zeroing the memory containing the keyslots when it is freed, and also because we want to continue using kvmalloc() (and there is no devm_kvmalloc()). Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Satya Tangirala <satyat@google.com> Acked-by: Jens Axboe <axboe@kernel.dk> Link: https://lore.kernel.org/r/20210121082155.111333-2-ebiggers@kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> (cherry picked from commit 5851d3b042b694839d2241fbb3200ce958135cdf) Bug: 161256007 Change-Id: I3cda7fc5f7509f8d967882a88ca30ddc6f6a0426 Signed-off-by: Eric Biggers <ebiggers@google.com> |
||
---|---|---|
.. | ||
bfq-iosched.rst | ||
biodoc.rst | ||
biovecs.rst | ||
blk-mq.rst | ||
capability.rst | ||
cmdline-partition.rst | ||
data-integrity.rst | ||
deadline-iosched.rst | ||
index.rst | ||
inline-encryption.rst | ||
ioprio.rst | ||
kyber-iosched.rst | ||
null_blk.rst | ||
pr.rst | ||
queue-sysfs.rst | ||
request.rst | ||
stat.rst | ||
switching-sched.rst | ||
writeback_cache_control.rst |