diff options
| author | Eric Biggers <[email protected]> | 2019-12-31 17:55:45 +0000 |
|---|---|---|
| committer | Eric Biggers <[email protected]> | 2020-01-14 21:28:05 +0000 |
| commit | 439bea104c3d212def0216aa8c0820872266c5b3 (patch) | |
| tree | 1de5689485baeaac6b66822c57a519021a203469 /tools/perf/scripts/python | |
| parent | fs-verity: implement readahead of Merkle tree pages (diff) | |
| download | kernel-439bea104c3d212def0216aa8c0820872266c5b3.tar.gz kernel-439bea104c3d212def0216aa8c0820872266c5b3.zip | |
fs-verity: use mempool for hash requests
When initializing an fs-verity hash algorithm, also initialize a mempool
that contains a single preallocated hash request object. Then replace
the direct calls to ahash_request_alloc() and ahash_request_free() with
allocating and freeing from this mempool.
This eliminates the possibility of the allocation failing, which is
desirable for the I/O path.
This doesn't cause deadlocks because there's no case where multiple hash
requests are needed at a time to make forward progress.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Theodore Ts'o <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
