md: skip resync for raid array with journal
authorShaohua Li <shli@fb.com>
Wed, 2 Sep 2015 20:49:50 +0000 (13:49 -0700)
committerNeilBrown <neilb@suse.com>
Sun, 1 Nov 2015 02:48:26 +0000 (13:48 +1100)
commitbd18f6462f3d167a9b3ec27851c98f82694b2adf
tree8c844bcfd5985c9f2f27183f38eca68dbef8318e
parent828cbe989e4f5c8666cb3d99918b03666ccde0a0
md: skip resync for raid array with journal

If a raid array has journal, the journal can guarantee the consistency,
we can skip resync after a unclean shutdown. The exception is raid
creation or user initiated resync, which we still do a raid resync.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md.c
drivers/md/md.h