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. Note that I still can't reproduce this problem so this was based on code inspection. Also note that I occasionally run into a hang in the 07layouts tests with or without this series. Diffstat: md.c | 272 +++++++++++++++++++++++++++++++++---------------------------------- md.h | 1 2 files changed, 139 insertions(+), 134 deletions(-)