mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
5851d3b042
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> |
||
---|---|---|
.. | ||
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 |