2003-03-19 23:26:13

by Daniel McNeil

[permalink] [raw]
Subject: [PATCH 2.5.65] update md driver to new module API

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]>


Attachments:
patch-2.5.65-md (9.68 kB)