md-cluster: make md-cluster also can work when compiled into kernel
authorGuoqing Jiang <gqjiang@suse.com>
Mon, 5 Sep 2016 02:17:28 +0000 (22:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:07:41 +0000 (10:07 +0200)
commit10c2897d864e58ae7706bcb9c3b54b8d667dcb51
tree34e78ddfb5dfcdb92d131f6c301f11e6ff036f88
parent6267a54a24331b4ddee59ebf98c76e92cfed6719
md-cluster: make md-cluster also can work when compiled into kernel

commit 47a7b0d8888c04c9746812820b6e60553cc77bbc upstream.

The md-cluster is compiled as module by default,
if it is compiled by built-in way, then we can't
make md-cluster works.

[64782.630008] md/raid1:md127: active with 2 out of 2 mirrors
[64782.630528] md-cluster module not found.
[64782.630530] md127: Could not setup cluster service (-2)

Fixes: edb39c9 ("Introduce md_cluster_operations to handle cluster functions")
Reported-by: Marc Smith <marc.smith@mcc.edu>
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/md.c