raid5: journal disk can't be removed
authorShaohua Li <shli@fb.com>
Fri, 9 Oct 2015 04:54:07 +0000 (21:54 -0700)
committerNeilBrown <neilb@suse.com>
Sun, 1 Nov 2015 02:48:29 +0000 (13:48 +1100)
commitc2bb6242ece5a2a0b6bd415c1d58babe83e971a8
tree9851a37565bc5e14d75ad99b7fe0d53b49fb1d7b
parent4b482044d24f3db2e11607d0a18f64b3a326972d
raid5: journal disk can't be removed

raid5-cache uses journal disk rdev->bdev, rdev->mddev in several places.
Don't allow journal disk disappear magically. On the other hand, we do
need to update superblock for other disks to bump up ->events, so next
time journal disk will be identified as stale.

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