md-cluster: complete all write requests before adding suspend_info
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Fri, 14 Aug 2015 17:19:40 +0000 (12:19 -0500)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 12 Oct 2015 06:29:59 +0000 (01:29 -0500)
commit9ed38ff53090856769b99e9d2f19740fb11e6956
tree87d793d755b2d5128a524d935904ae1a7159d15a
parentda6fb7a9e5bd6f04f7e15070f630bdf1ea502841
md-cluster: complete all write requests before adding suspend_info

process_suspend_info - which handles the RESYNCING request - must not
reply until all writes which were initiated before the request arrived,
have completed.

As a by-product, all process_* functions now take mddev as their
first arguement making it uniform.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md-cluster.c