kernel-ark/drivers
NeilBrown 2604b703b6 [PATCH] md: remove personality numbering from md
md supports multiple different RAID level, each being implemented by a
'personality' (which is often in a separate module).

These personalities have fairly artificial 'numbers'.  The numbers
are use to:
 1- provide an index into an array where the various personalities
    are recorded
 2- identify the module (via an alias) which implements are particular
    personality.

Neither of these uses really justify the existence of personality numbers.
The array can be replaced by a linked list which is searched (array lookup
only happens very rarely).  Module identification can be done using an alias
based on level rather than 'personality' number.

The current 'raid5' modules support two level (4 and 5) but only one
personality.  This slight awkwardness (which was handled in the mapping from
level to personality) can be better handled by allowing raid5 to register 2
personalities.

With this change in place, the core md module does not need to have an
exhaustive list of all possible personalities, so other personalities can be
added independently.

This patch also moves the check for chunksize being non-zero into the ->run
routines for the personalities that need it, rather than having it in core-md.
 This has a side effect of allowing 'faulty' and 'linear' not to have a
chunk-size set.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-06 08:34:06 -08:00
..
acorn
acpi
atm
base
block [PATCH] parport: Kconfig dependency fixes 2006-01-06 08:33:57 -08:00
bluetooth
cdrom
char [PATCH] fix remaining list_for_each_safe_rcu in -mm (take 2) 2006-01-06 08:33:58 -08:00
connector
cpufreq
crypto
dio
eisa
fc4
firmware
hwmon
i2c
ide
ieee1394 [PATCH] don't freeze firewire on suspend. 2006-01-06 08:33:43 -08:00
infiniband
input [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
isdn
macintosh [PATCH] therm_adt746x: Quiet fan speed change messages 2006-01-06 08:33:32 -08:00
mca
md [PATCH] md: remove personality numbering from md 2006-01-06 08:34:06 -08:00
media [PATCH] parport: phase fixes 2006-01-06 08:33:56 -08:00
message [PATCH] I2O: Lindent run 2006-01-06 08:33:54 -08:00
mfd
misc
mmc
mtd
net [PATCH] parport: include fixes 2006-01-06 08:33:58 -08:00
nubus
oprofile
parisc
parport [PATCH] simplify PARPORT_PC_PCMCIA dependencies 2006-01-06 08:33:58 -08:00
pci
pcmcia
pnp [PATCH] x86: Fixed pnp bios limits 2006-01-06 08:33:35 -08:00
rapidio
s390 [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
sbus
scsi [PATCH] parport: Kconfig dependency fixes 2006-01-06 08:33:57 -08:00
serial
sh
sn
tc
telephony
usb
video
w1
zorro
Kconfig
Makefile