]> git.baikalelectronics.ru Git - kernel.git/commit
raid5: block failing device if raid will be failed
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Tue, 4 Sep 2018 13:08:30 +0000 (15:08 +0200)
committerShaohua Li <shli@fb.com>
Fri, 28 Sep 2018 18:13:15 +0000 (11:13 -0700)
commit497d7f1a1d63ffc019c59739efc610e4d71e50c0
tree34fe446e851510302425c8f69c5696934e7cfbcd
parentca95e01beb9a357f479557703e6fcdc356396b1e
raid5: block failing device if raid will be failed

Currently there is an inconsistency for failing the member drives
for arrays with different RAID levels. For RAID456 - there is a possibility
to fail all of the devices. However - for other RAID levels - kernel blocks
removing the member drive, if the operation results in array's FAIL state
(EBUSY is returned). For example - removing last drive from RAID1 is not
possible.
This kind of blocker was never implemented for raid456 and we cannot see
the reason why.

We had tested following patch and did not observe any regression, so do you
have any comments/reasons for current approach, or we can send the proper
patch for this?

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c