dm raid: avoid mddev->suspended access
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 13 Jul 2017 15:34:24 +0000 (17:34 +0200)
committerMike Snitzer <snitzer@redhat.com>
Tue, 25 Jul 2017 18:54:19 +0000 (14:54 -0400)
commit0cf352e5a00a0ccf362e4ae60dcaa3318933f6e4
treedc5b13576fface6f62e9171304c80f9598de5bb0
parentf4af3f82daed14ea06ac22eac198a45f56eb2cb1
dm raid: avoid mddev->suspended access

Use runtime flag to ensure that an mddev gets suspended/resumed just once.

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