dm raid: fix processing of max_recovery_rate constructor flag
authorHeinz Mauelshagen <heinzm@redhat.com>
Wed, 27 Jul 2016 21:34:01 +0000 (23:34 +0200)
committerMike Snitzer <snitzer@redhat.com>
Wed, 3 Aug 2016 14:30:52 +0000 (10:30 -0400)
commitf15f64d65bc0a4cc0973b5a30854bb5091d34153
treea0e40545b15d9e8907308707e5736fea2793e1f5
parenteaf9a7361f47727b166688a9f2096854eef60fbe
dm raid: fix processing of max_recovery_rate constructor flag

__CTR_FLAG_MIN_RECOVERY_RATE was used instead of __CTR_FLAG_MAX_RECOVERY_RATE
thus causing max_recovery_rate to be rejected in case min_recovery_rate
was already set.

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