]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
md: takeover should clear unrelated bits
authorShaohua Li <shli@fb.com>
Thu, 8 Dec 2016 23:48:17 +0000 (15:48 -0800)
committerShaohua Li <shli@fb.com>
Fri, 9 Dec 2016 06:00:11 +0000 (22:00 -0800)
commit6995f0b247e15e34fbcd10852c08b30bdc1a78da
treecf269278686e1ace761edded6fe4e7ae64417920
parent3c6edc66085e1d895a698c572bbfaf4d57fdb771
md: takeover should clear unrelated bits

When we change level from raid1 to raid5, the MD_FAILFAST_SUPPORTED bit
will be accidentally set, but raid5 doesn't support it. The same is true
for the MD_HAS_JOURNAL bit.

Fix: 46533ff (md: Use REQ_FAILFAST_* on metadata writes where appropriate)
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid0.c
drivers/md/raid1.c
drivers/md/raid5.c