md/cluster bugs fix
Status from this message: Applied the series to md-next. Thanks for the fix.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/22 patches 4 repliesApplied
- v4 posting 1/22 patches 3 repliesSuperseded
- v32 patches 3 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 9 replies | Superseded |
Changes in v4 from the cover letter
- revise subject & commit log on both patches
- no change for code
Patches in v4 posting 2/2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | md/cluster: block reshape with remote resync jobdrivers/ | +6 | 0 replies | |
| 2/2 | md/cluster: fix deadlock when node is doing resync jobdrivers/ drivers/ | +43 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Xiao Ni |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/2] md/cluster bugs fix
Hello List,
There are two patches to fix md-cluster bugs.
The 2 different bugs can use same test script to trigger:
```
ssh root@node2 "mdadm -S --scan"
mdadm -S --scan
for i in {g,h,i};do dd if=/dev/zero of=/dev/sd$i oflag=direct bs=1M \
count=20; done
echo "mdadm create array"
mdadm -C /dev/md0 -b clustered -e 1.2 -n 2 -l mirror /dev/sdg /dev/sdh \
--bitmap-chunk=1M
echo "set up array on node2"
ssh root@node2 "mdadm -A /dev/md0 /dev/sdg /dev/sdh"
sleep 5
mkfs.xfs /dev/md0
mdadm --manage --add /dev/md0 /dev/sdi
mdadm --wait /dev/md0
mdadm --grow --raid-devices=3 /dev/md0
mdadm /dev/md0 --fail /dev/sdg
mdadm /dev/md0 --remove /dev/sdg
mdadm --grow --raid-devices=2 /dev/md0
```For detail, please check each patch commit log.
-------
v4:
- revise subject & commit log on both patches
- no change for code
v3:
- patch 1/2
- no change
- patch 2/2
- use Xiao's solution to fix
- revise commit log for the "How to fix" part
v2:
- patch 1/2
- change patch subject
- add test result in commit log
- no change for code
- patch 2/2
- add test result in commit log
- add error handling of remove_disk in hot_remove_disk
- add error handling of lock_comm in all caller
- remove 5s timeout fix in receive side (for process_metadata_update)
v1:
- create patch
-------
Zhao Heming (2):
md/cluster: block reshape with remote resync job md/cluster: fix deadlock when node is doing resync job
drivers/md/md-cluster.c | 69 +++++++++++++++++++++++------------------ drivers/md/md.c | 14 ++++++--- 2 files changed, 49 insertions(+), 34 deletions(-)
Signature · 1 line
2.27.0