]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid: fix restoring of failed devices regression
authorHeinz Mauelshagen <heinzm@redhat.com>
Wed, 10 Aug 2016 00:45:59 +0000 (02:45 +0200)
committerMike Snitzer <snitzer@redhat.com>
Tue, 16 Aug 2016 20:21:31 +0000 (16:21 -0400)
commit56d367cfc3534a230305e307674ccc0afbcdd672
treedff467bde67b6df74fdf8793dc4765c7cb6dfb5c
parentf290f861442d4c12e7a8e5f267e40e576c0b92ed
dm raid: fix restoring of failed devices regression

'lvchange --refresh RaidLV' causes a mapped device suspend/resume cycle
aiming at device restore and resync after transient device failures.  This
failed because flag RT_FLAG_RS_RESUMED was always cleared in the suspend path,
thus the device restore wasn't performed in the resume path.

Solve by removing RT_FLAG_RS_RESUMED from the suspend path and resume
unconditionally.  Also, remove superfluous comment from raid_resume().

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c