android_kernel_xiaomi_sm8350/drivers
NeilBrown 64a742bc61 [PATCH] md: fix raid10 recovery problem.
There are two errors that can lead to recovery problems with raid10
when used in 'far' more (not the default).

Due to a '>' instead of '>=' the wrong block is located which would result in
garbage being written to some random location, quite possible outside the
range of the device, causing the newly reconstructed device to fail.

The device size calculation had some rounding errors (it didn't round when it
should) and so recovery would go a few blocks too far which would again cause
a write to a random block address and probably a device error.

The code for working with device sizes was fairly confused and spread out, so
this has been tided up a bit.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-03-01 14:53:36 -08:00
..
acorn
acpi
amba
ata [PATCH] Fix oops in pata_pcmcia 2007-02-26 13:02:08 -08:00
atm
auxdisplay
base Driver core: fix error by cleanup up symlinks properly 2007-02-23 14:52:09 -08:00
block [PATCH] Fix failure paths in modules init in umem.c 2007-03-01 14:53:36 -08:00
bluetooth [Bluetooth] Make use of MODULE_FIRMWARE 2007-02-26 11:42:42 -08:00
cdrom
char [AGPGART] fix compile errors 2007-02-27 00:36:00 -05:00
clocksource
connector
cpufreq Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
crypto
dio
dma
edac
eisa
fc4
firmware
hid
hwmon
i2c
ide
ieee1394
infiniband IPoIB: Correct debugging output when path record lookup fails 2007-02-26 12:57:08 -08:00
input
isdn
kvm
leds
macintosh
mca
md [PATCH] md: fix raid10 recovery problem. 2007-03-01 14:53:36 -08:00
media V4L/DVB (5253): Qt1010: whitespace / 80 column cleanups 2007-02-21 13:35:33 -02:00
message
mfd [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver 2007-02-26 12:35:47 -08:00
misc
mmc
mtd [ARM] 4233/1: nand/s3c2410.c: warning fix 2007-02-25 16:41:41 +00:00
net netxen: do_rom_fast_write error handling 2007-02-27 04:38:33 -05:00
nubus
oprofile
parisc Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6 2007-02-26 12:48:06 -08:00
parport
pci
pcmcia Driver core: more fallout from class_device changes for pcmcia 2007-02-23 14:52:09 -08:00
pnp
ps3
rapidio
rtc
s390
sbus [SPARC] uctrl: Check request_irq() return value. 2007-02-26 11:35:51 -08:00
scsi
serial Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6 2007-02-26 12:48:06 -08:00
sh
sn
spi
tc
telephony
usb USB: export autosuspend delay in sysfs 2007-02-23 15:03:47 -08:00
video [PATCH] drivers/video/sm501fb.c: make 4 functions static 2007-03-01 14:53:35 -08:00
w1
zorro
Kconfig
Makefile