[PATCH -next 0/8] md/raid1-10: limit the number of plugged bio

From: Yu Kuai
Date: Thu Apr 20 2023 - 07:31:57 EST


From: Yu Kuai <yukuai3@xxxxxxxxxx>

This patchset tries to limit the number of plugged bio for raid1 and
raid10, which is done in the last patch, other patches are some refactor
and optimizations.

Yu Kuai (8):
md/raid10: prevent soft lockup while flush writes
md/raid1-10: rename raid1-10.c to raid1-10.h
md/raid1-10: factor out a helper to add bio to plug
md/raid1-10: factor out a helper to submit normal write
md/raid1-10: submit write io directly if bitmap is not enabled
md/md-bitmap: support to unplug bitmap asynchrously
md/raid1{,0}: Revert "md/raid1{,0}: fix deadlock in bitmap_unplug."
md/raid1-10: limit the number of plugged bio

drivers/md/md-bitmap.c | 61 ++++++++++++++++++++++++---
drivers/md/md-bitmap.h | 10 +++++
drivers/md/{raid1-10.c => raid1-10.h} | 61 +++++++++++++++++++++++++--
drivers/md/raid1.c | 32 +++-----------
drivers/md/raid1.h | 2 +
drivers/md/raid10.c | 45 ++++----------------
drivers/md/raid10.h | 2 +
7 files changed, 143 insertions(+), 70 deletions(-)
rename drivers/md/{raid1-10.c => raid1-10.h} (64%)

--
2.39.2