This patch updates the md driver and personalities to the new
module interfaces.
An owner field has been added to the struct mdk_personality_s.
This is initialized by each personality module. The md driver
now attempts to take a reference to the personality before calling
the personality's run routine. A pers_lock was added to protect
the setting, clearing and reading of pers[] entries. This protects
try_module_get() racing with unregister_md_personality().
I have tested each personality as a module.
--
Daniel McNeil <[email protected]>