Skip to content
Commit 0d809b38 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Song Liu
Browse files

md: do not return existing mddevs from mddev_find_or_alloc



Instead of returning an existing mddev, just for it to be discarded
later directly return -EEXIST.  Rename the function to mddev_alloc now
that it doesn't find an existing mddev.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent d144fe6f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment