Skip to content
Snippets Groups Projects
Commit 69d5e5ca authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Yang Yingliang
Browse files

md: factor out a mddev_find_locked helper from mddev_find


stable inclusion
from linux-4.19.191
commit 587241f748424a7532b1cd9536b2128a47ee54a1

--------------------------------

commit 8b57251f9a91f5e5a599de7549915d2d226cc3af upstream.

Factor out a self-contained helper to just lookup a mddev by the dev_t
"unit".

Cc: stable@vger.kernel.org
Reviewed-by: default avatarHeming Zhao <heming.zhao@suse.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 5d2fc79a
No related branches found
No related tags found
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