NeilBrown c4647292fd md: remove rd%d links immediately after stopping an array.
md maintains link in sys/mdXX/md/ to identify which device has
which role in the array. e.g.
   rd2 -> dev-sda

indicates that the device with role '2' in the array is sda.

These links are only present when the array is active.  They are
created immediately after ->run is called, and so should be removed
immediately after ->stop is called.
However they are currently removed a little bit later, and it is
possible for ->run to be called again, thus adding these links, before
they are removed.

So move the removal earlier so they are consistently only present when
the array is active.

Signed-off-by: NeilBrown <neilb@suse.de>
2009-05-07 12:51:06 +10:00
..
2006-01-01 22:21:50 +01:00
2009-04-02 19:55:28 +01:00
2009-04-02 19:55:24 +01:00
2009-04-09 00:27:12 +01:00
2009-04-09 00:27:17 +01:00
2009-04-09 00:27:13 +01:00
2009-01-06 03:05:12 +00:00
2009-04-09 00:27:13 +01:00
2007-10-20 02:01:26 +01:00
2009-04-15 08:28:09 +02:00
2009-04-09 00:27:13 +01:00
2009-04-14 12:01:53 +10:00
2009-03-31 15:00:31 +11:00
2009-03-31 14:57:37 +11:00
2005-04-16 15:20:36 -07:00