linux/Documentation/block
Eric Biggers 25b3bc709c UPSTREAM: block/keyslot-manager: introduce devm_blk_ksm_init()
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 5851d3b042)
Bug: 161256007
Change-Id: I3cda7fc5f7509f8d967882a88ca30ddc6f6a0426
Signed-off-by: Eric Biggers <ebiggers@google.com>
2021-02-23 08:10:56 +01:00
..
bfq-iosched.rst docs: block: update and fix tiny error for bfq 2020-07-06 08:07:01 -06:00
biodoc.rst It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
biovecs.rst
blk-mq.rst docs: block: blk-mq.rst: get rid of :c:type 2020-10-15 07:49:43 +02:00
capability.rst
cmdline-partition.rst
data-integrity.rst
deadline-iosched.rst
index.rst docs: block: Create blk-mq documentation 2020-06-22 07:03:33 -06:00
inline-encryption.rst UPSTREAM: block/keyslot-manager: introduce devm_blk_ksm_init() 2021-02-23 08:10:56 +01:00
ioprio.rst
kyber-iosched.rst
null_blk.rst
pr.rst Documentation: block: eliminate duplicated word 2020-07-13 09:44:05 -06:00
queue-sysfs.rst block: add zone specific block statuses 2020-10-13 15:05:05 -06:00
request.rst
stat.rst
switching-sched.rst
writeback_cache_control.rst block: move ->make_request_fn to struct block_device_operations 2020-07-01 07:27:24 -06:00