https://github.com/torvalds/linux
Revision f001a70cdc61c01452d42e8b32fd7c7842ef62d5 authored by NeilBrown on 09 June 2009, 04:30:31 UTC, committed by NeilBrown on 09 June 2009, 04:30:31 UTC
mddev->raid_disks can be changed and any time by a request from
user-space.  It is a suggestion as to what number of raid_disks is
desired.

conf->raid_disks can only be changed by the raid5 module with suitable
locks in place.  It is a statement as to the current number of
raid_disks.

There are two places where the latter should be used, but the former
is used.  This can lead to a crash when reshaping an array.

This patch changes to mddev-> to conf->

Signed-off-by: NeilBrown <neilb@suse.de>
1 parent ccc0d38
History
Tip revision: f001a70cdc61c01452d42e8b32fd7c7842ef62d5 authored by NeilBrown on 09 June 2009, 04:30:31 UTC
md/raid5: use conf->raid_disks in preference to mddev->raid_disk
Tip revision: f001a70
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 885 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.6 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 144.8 KB
Makefile -rw-r--r-- 53.8 KB
README -rw-r--r-- 16.7 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top