md/linear: use call_rcu to free obsolete 'conf' structures.
authorNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 22:49:42 +0000 (08:49 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 22:49:42 +0000 (08:49 +1000)
commit495d357301e1de01fabe30ce9a555301fb4675c3
treecff9506eec5e4008004a913acf8f58d85eae6de6
parentaf11c397fd8835c70ec0bb777104e4ab98b2d660
md/linear: use call_rcu to free obsolete 'conf' structures.

Current, when we update the 'conf' structure, when adding a
drive to a linear array, we keep the old version around until
the array is finally stopped, as it is not safe to free it
immediately.

Now that we have rcu protection on all accesses to 'conf',
we can use call_rcu to free it more promptly.

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