]> asedeno.scripts.mit.edu Git - linux.git/commit
md: clear WantReplacement once disk is removed
authorGuoqing Jiang <gqjiang@suse.com>
Mon, 24 Apr 2017 07:58:04 +0000 (15:58 +0800)
committerShaohua Li <shli@fb.com>
Tue, 25 Apr 2017 16:36:29 +0000 (09:36 -0700)
commite5bc9c3c5432f5531a58e6fdd9f6c6587f2137b3
tree7bd80fcacc5e294ea3da9623bfd352e0aa6fb970
parent296617581eac713b3fda588216ae6d16d1e76dd5
md: clear WantReplacement once disk is removed

We can clear 'WantReplacement' flag directly no
matter it's replacement existed or not since the
semantic is same as before.

Also since the disk is removed from array, then
it is straightforward to remove 'WantReplacement'
flag and the comments in raid10/5 can be removed
as well.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c