aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorLongPing Wei <[email protected]>2025-03-27 02:18:19 +0000
committerMikulas Patocka <[email protected]>2025-03-28 10:32:55 +0000
commit5c5d0d7050286e14a6ca18b8d77fc7a34f701206 (patch)
tree2eae906a65550d18e2e571ab4100110f883a52e2 /drivers/net/dsa/dsa_loop.c
parentdm-delay: support zoned devices (diff)
downloadkernel-5c5d0d7050286e14a6ca18b8d77fc7a34f701206.tar.gz
kernel-5c5d0d7050286e14a6ca18b8d77fc7a34f701206.zip
dm-verity: support block number limits for different ioprio classes
Calling verity_verify_io in bh for IO of all sizes is not suitable for embedded devices. From our tests, it can improve the performance of 4K synchronise random reads. For example: ./fio --name=rand_read --ioengine=psync --rw=randread --bs=4K \ --direct=1 --numjobs=8 --runtime=60 --time_based --group_reporting \ --filename=/dev/block/mapper/xx-verity But it will degrade the performance of 512K synchronise sequential reads on our devices. For example: ./fio --name=read --ioengine=psync --rw=read --bs=512K --direct=1 \ --numjobs=8 --runtime=60 --time_based --group_reporting \ --filename=/dev/block/mapper/xx-verity A parameter array is introduced by this change. And users can modify the default config by /sys/module/dm_verity/parameters/use_bh_bytes. The default limits for NONE/RT/BE is set to 8192. The default limits for IDLE is set to 0. Call verity_verify_io directly when verity_end_io is not in hardirq. Signed-off-by: LongPing Wei <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions