diff options
author | Guoqing Jiang <guoqing.jiang@cloud.ionos.com> | 2019-12-23 10:49:01 +0100 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-01-13 11:44:10 -0800 |
commit | 025471f9f50fede6527c70336484becbcb2aff28 (patch) | |
tree | 9707bbe6e363c05cced1537261066cf3cf51fdb8 /security | |
parent | 69b00b5bb23552d43e8bbed73ef6624604bb94a2 (diff) | |
download | linux-025471f9f50fede6527c70336484becbcb2aff28.tar.gz linux-025471f9f50fede6527c70336484becbcb2aff28.tar.bz2 linux-025471f9f50fede6527c70336484becbcb2aff28.zip |
md/raid1: use bucket based mechanism for IO serialization
Since raid1 had already used bucket based mechanism to reduce
the conflict between write IO and resync IO, it is possible to
speed up performance for io serialization with refer to the
same mechanism.
To align with the barrier bucket mechanism, we created arrays
(with the same number of BARRIER_BUCKETS_NR) for spinlock, rb
tree and waitqueue. Then we can reduce lock competition with
multiple spinlocks, boost search performance with multiple rb
trees and also reduce thundering herd problem with multiple
waitqueues.
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions