Hi all, this series tries to fix a problem repored by Logan where we see duplicate sysfs file name in md. It is due to the fact that the md driver only checks for duplicates on currently live mddevs, while the sysfs name can live on longer. It is an old problem, but the race window got longer due to waiting for the device freeze earlier in del_gendisk. Changes since v1: - rebased to the md-next branch - fixed error handling in md_alloc for real - add a little cleanup patch Diffstat: md.c | 301 +++++++++++++++++++++++++++++++++++-------------------------------- md.h | 1 2 files changed, 161 insertions(+), 141 deletions(-)