md/linear: remove rcu protections in favour of suspend/resume
authorNeilBrown <neilb@suse.de>
Mon, 15 Dec 2014 01:56:57 +0000 (12:56 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 3 Feb 2015 21:35:52 +0000 (08:35 +1100)
commit3be260cc18f850873cd32381158e28b0a9a391fd
tree2400b6a0774d047cf3cc90c8471f8d91ec89908c
parent64590f45ddc7147fa1968147a1f5b5c436b728fe
md/linear: remove rcu protections in favour of suspend/resume

The use of 'rcu' to protect accesses to ->private_data so that
the ->private_data could be updated predates the introduction
of mddev_suspend/mddev_resume.
These are a cleaner mechanism for providing stability while
swapping in a new ->private data - it is used by level_store()
to support changing of raid levels.

So get rid of the RCU stuff and just use mddev_suspend, mddev_resume.

As these function call ->quiesce(), we add an empty function for
linear just like for raid0.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/linear.c