[PATCH v5 2/2] dm-integrity: introduce ahash support for the internal hash

2025-07-22 Thread Harald Freudenberger
From: Mikulas Patocka Introduce ahash support for the "internal hash" algorithm. Rework the dm-integrity code to be able to run the "internal hash" either with a synchronous ("shash") or asynchronous ("ahash") hash algorithm implementation. The get_mac() function now tries to decide which of th

[PATCH v5 0/2] dm-integrity: Implement asynch digest support

2025-07-22 Thread Harald Freudenberger
Support for ahashes in dm-integrity. Changelog: v1: First implementation. Tested with crc32, sha256, hmac-sha256 and the s390 specific implementations for hmac-sha256 and protected key phmac-sha256. Also ran with some instrumented code (in the digest implementation) to verify that in

[PATCH v5 1/2] dm-integrity: use internal variable for digestsize

2025-07-22 Thread Harald Freudenberger
From: Mikulas Patocka Instead of calling digestsize() each time the digestsize for the internal hash is needed, store the digestsize in a new field internal_hash_digestsize within struct dm_integrity_c once and use this value when needed. Signed-off-by: Mikulas Patocka Signed-off-by: Harald Fre

Re: [PATCH v4 00/11] md/llbitmap: md/md-llbitmap: introduce a new lockless bitmap

2025-07-22 Thread Li Nan
在 2025/7/22 1:15, Yu Kuai 写道: From: Yu Kuai Changes from v3: - fix redundant setting mddev->bitmap_id in patch 6; - add explanation of bitmap attributes in Documentation; - add llbitmap/barrier_idle in patch 11; - add some comments in patch 11; [...] Patches 01–10 look good: Revi