diff options
author | Mariusz Tkaczyk <[email protected]> | 2023-03-06 14:03:17 +0100 |
---|---|---|
committer | Song Liu <[email protected]> | 2023-04-13 22:20:24 -0700 |
commit | c31fea2f8e2a72c817f318016bbc327095175a9f (patch) | |
tree | 2ebc9bbe58cf101f8fd32761deefd67364a28bfa /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 8745faa95611f6331331284925012c0310ae3e2c (diff) |
md: add error_handlers for raid0 and linear
After the commit 9631abdbf406c("md: Set MD_BROKEN for RAID1 and RAID10")
MD_BROKEN must be set if array is failed because state_store() checks it.
If it is set then -EBUSY is returned to userspace.
For raid0 and linear MD_BROKEN is not set by error_handler(). As a result
mdadm is unable to trigger clean-up actions. It is a regression.
This patch adds appropriate error_handler for raid0 and linear. The
error handler sets MD_BROKEN for this device.
Reviewed-by: Xiao Ni <[email protected]>
Signed-off-by: Mariusz Tkaczyk <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions