inital code of md-raid1 from SLE12
change bitmap superblock struct and corriesponding memory struct

Signed-off-by: Bo Yang <boyang@suse.com>
add dlm interface to lock mddev

Signed-off-by: Bo Yang <boyang@suse.com>
change bitmap API

adding parameter node to bitmap API
use md_lock_super to lock before writing bitmap super block

Signed-off-by: Bo Yang <boyang@suse.com>
change function bitmap_init_from_disk(bitmap.c)

maybe some brackets can not match.

Signed-off-by: Bo Yang <boyang@suse.com>
fix
bitmap.c add internal API

add bitmap_lock_sync functions to lock bitmap when starting

add bitmap_add_avail_bitmap related functions to manage
available bitmap.

Signed-off-by: Bo Yang <boyang@suse.com>
change bitmap_create

Signed-off-by: Bo Yang <boyang@suse.com>
edit bitmap_load

Signed-off-by: Bo Yang <boyang@suse.com>
edit bitmap_resize

Signed-off-by: Bo Yang <boyang@suse.com>
leave bitmap event count to other parts

Signed-off-by: Bo Yang <boyang@suse.com>
change read_disk_sb in md.c

Signed-off-by: Bo Yang <boyang@suse.com>
edit md_update_sb in md.c

Signed-off-by: Bo Yang <boyang@suse.com>
change super_1_rdev_size_change,md_run

Signed-off-by: Bo Yang <boyang@suse.com>
change do_md_run,md_check_recovery,md_init,md_exit

Signed-off-by: Bo Yang <boyang@suse.com>
add message send/recv in raid1.c

added two threads: raid1_recvd, raid1_sendd

Signed-off-by: Bo Yang <boyang@suse.com>
add message struct in md.h

Signed-off-by: Bo Yang <boyang@suse.com>
re-edit bitmap_update_sb, bitmap_init_from_disk