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)
committerShaohua Li <shli@fb.com>
Thu, 8 Sep 2016 18:11:27 +0000 (11:11 -0700)
commit47a7b0d8888c04c9746812820b6e60553cc77bbc
tree2767ab8a502311ac7f5a02c936d05c3bba5b9ef2
parentad5b0f7685dbfc4730987cd16af3c5ebe8133f10
md-cluster: make md-cluster also can work when compiled into kernel

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")
Cc: stable@vger.kernel.org (v4.1+)
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>
drivers/md/md.c