logo       

[PATCH 2.5.65] update md driver to new module API: msg#00094

linux.raid

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 <daniel@xxxxxxxx>

Attachment: patch-2.5.65-md
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise