android_kernel_xiaomi_sm8450/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 5851d3b042b694839d2241fbb3200ce958135cdf)
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 block: add bio_for_each_bvec_all() 2020-05-25 11:25:24 +02:00
blk-mq.rst docs: block: blk-mq.rst: get rid of :c:type 2020-10-15 07:49:43 +02:00
capability.rst block: Document genhd capability flags 2020-03-12 07:47:22 -06:00
cmdline-partition.rst docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
data-integrity.rst docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
deadline-iosched.rst docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
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 docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
kyber-iosched.rst docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
null_blk.rst docs: block: null_blk: enhance document style 2019-09-11 16:04:22 -06:00
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 docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
stat.rst block: add iostat counters for flush requests 2019-11-21 09:06:47 -07:00
switching-sched.rst Documenation: switching-sched: Remove notes about elevator argument 2019-09-03 08:04:02 -06:00
writeback_cache_control.rst block: move ->make_request_fn to struct block_device_operations 2020-07-01 07:27:24 -06:00