linux/drivers
NeilBrown 30b8feb730 md/raid5: avoid deadlock when raid5 array has unack badblocks during md_stop_writes.
When raid5 recovery hits a fresh badblock, this badblock will flagged as unack
badblock until md_update_sb() is called.
But md_stop will take reconfig lock which means raid5d can't call
md_update_sb() in md_check_recovery(), the badblock will always
be unack, so raid5d thread enters an infinite loop and md_stop_write()
can never stop sync_thread. This causes deadlock.

To solve this, when STOP_ARRAY ioctl is issued and sync_thread is
running, we need set md->recovery FROZEN and INTR flags and wait for
sync_thread to stop before we (re)take reconfig lock.

This requires that raid5 reshape_request notices MD_RECOVERY_INTR
(which it probably should have noticed anyway) and stops waiting for a
metadata update in that case.

Reported-by: Jianpeng Ma <majianpeng@gmail.com>
Reported-by: Bian Yu <bianyu@kedacom.com>
Signed-off-by: NeilBrown <neilb@suse.de>
History 2013-11-19 15:19:17 +11:00
..
accessibility printk: move braille console support into separate braille.[ch] files 2013-07-31 14:41:03 -07:00
acpi Merge branch 'linus' into sched/core 2013-11-01 08:24:41 +01:00
amba PM / Runtime: Rework the "runtime idle" helper routine 2013-06-03 21:49:52 +02:00
ata Merge branch 'for-3.12-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata 2013-10-22 08:21:34 +01:00
atm atm: nicstar: fix regression made by previous patch 2013-09-15 22:18:55 -04:00
auxdisplay Drivers: misc: remove __dev* attributes. 2013-01-03 15:57:16 -08:00
base devres: restore zeroing behavior of devres_alloc() 2013-10-25 05:46:27 +01:00
bcma Merge 3.12-rc6 into driver-core-next 2013-10-19 13:05:38 -07:00
block Via Paul Walmsley <paul@pwsan.com>: 2013-10-28 14:39:03 -07:00
bluetooth Bluetooth: btusb: Add support for Belkin F8065bf 2013-09-23 17:44:25 -03:00
bus ARM: driver updates for 3.13 2013-11-11 17:05:37 +09:00
cdrom drivers/cdrom/cdrom.c: use kzalloc() for failing hardware 2013-07-03 16:07:25 -07:00
char Merge 3.12-rc6 into char-misc-next 2013-10-19 13:02:47 -07:00
clk ARM: SoC DT updates for 3.13 2013-11-11 17:34:56 +09:00
clocksource clocksource: em_sti: Set cpu_possible_mask to fix SMP broadcast 2013-09-26 02:31:04 +02:00
connector connector: use 'size' everywhere in cn_netlink_send() 2013-10-02 16:03:50 -04:00
cpufreq ARM: SoC platform changes for 3.13 2013-11-11 16:49:45 +09:00
cpuidle cpuidle: calxeda: add support to use PSCI calls 2013-10-01 16:30:56 -05:00
crypto Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux 2013-09-07 12:53:35 +10:00
dca dca: convert to idr_alloc() 2013-02-27 19:10:15 -08:00
devfreq devfreq: convert devfreq_class to use dev_groups 2013-08-19 21:22:34 -07:00
dio m68k: don't export static inline functions 2009-12-06 11:18:28 +01:00
dma ARM: driver updates for 3.13 2013-11-11 17:05:37 +09:00
edac Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2013-09-06 11:14:33 -07:00
eisa PCI changes for the v3.10 merge window: 2013-04-29 09:30:25 -07:00
extcon Update extcon for 3.13 2013-09-26 20:47:25 -07:00
firewire firewire: ohci: Fix deadlock at bus reset 2013-08-29 22:35:05 +02:00
firmware firmware/dmi_scan: drop OOM messages 2013-09-11 15:58:51 -07:00
fmc FMC: Staticize local symbols 2013-08-12 15:45:40 -07:00
gpio ARM: SoC DT updates for 3.13 2013-11-11 17:34:56 +09:00
gpu i915: fix compiler warning 2013-10-31 15:28:23 -07:00
hid Staging driver update for 3.13-rc1 2013-11-07 15:07:58 +09:00
hsi hsi: convert bus code to use dev_groups 2013-10-16 18:36:04 -07:00
hv Drivers: hv: vmbus: Fix a bug in channel rescind code 2013-10-19 19:53:46 -07:00
hwmon hwmon: (applesmc) Always read until end of data 2013-10-09 09:48:55 -07:00
hwspinlock A single patch from Vincent extending OMAP's hwspinlock support to OMAP5. 2013-05-07 14:01:27 -07:00
i2c i2c: i2c-mux-pinctrl: use deferred probe when adapter not found 2013-10-10 10:22:35 +02:00
ide ARM: SoC cleanups for 3.13 2013-11-11 16:42:43 +09:00
idle sched, idle: Fix the idle polling state logic 2013-09-25 13:53:10 +02:00
iio iio: light: vcnl4000: Remove redundant code 2013-10-24 14:48:14 +01:00
infiniband Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2013-10-27 10:16:33 -07:00
input ARM: SoC cleanups for 3.13 2013-11-11 16:42:43 +09:00
iommu x86, build, pci: Fix PCI_MSI build on !SMP 2013-10-04 10:43:34 -07:00
ipack ipack: convert bus code to use dev_groups 2013-10-16 18:40:57 -07:00
irqchip Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2013-11-12 10:02:59 +09:00
isdn isdn: hfcpci_softirq: get func return to suppress compiler warning 2013-09-15 22:27:04 -04:00
leds Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds 2013-09-12 11:35:33 -07:00
lguest lguest: fix guest kernel stack overflow when TF bit set. 2013-09-06 08:09:27 +09:30
macintosh macintosh/ams: Replace strict_strtoul() with kstrtoul() 2013-08-14 14:57:43 +10:00
mailbox mailbox: remove unnecessary platform_set_drvdata() 2013-09-18 12:02:00 -07:00
md md/raid5: avoid deadlock when raid5 array has unack badblocks during md_stop_writes. 2013-11-19 15:19:17 +11:00
media ARM: SoC cleanups for 3.13 2013-11-11 16:42:43 +09:00
memory ARM: SoC platform changes for 3.12 2013-09-06 13:30:06 -07:00
memstick memstick: convert bus code to use dev_groups 2013-10-16 18:40:58 -07:00
message i2o: convert bus code to use dev_groups 2013-10-16 18:40:58 -07:00
mfd mfd: dbx500: Remove any mention of the BML8580CLK 2013-09-26 11:04:16 +02:00
misc Driver Core / sysfs patches for 3.13-rc1 2013-11-07 11:42:15 +09:00
mmc Merge 3.12-rc6 into driver-core-next 2013-10-19 13:05:38 -07:00
mtd Driver Core / sysfs patches for 3.13-rc1 2013-11-07 11:42:15 +09:00
net Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2013-11-08 08:32:58 +09:00
nfc NFC: pn544: i2c: Add firmware download implementation for pn544 2013-08-14 01:13:35 +02:00
ntb ntb: clean up unnecessary MSI/MSI-X capability find 2013-09-05 11:08:01 -07:00
nubus nubus: Kill nubus_proc_detach_device() 2013-05-04 14:47:26 -04:00
of Revert "drivers: of: add initialization code for dma reserved memory" 2013-10-15 09:26:07 +01:00
oprofile oprofile: get rid of pointless forward declarations of struct super_block 2013-09-03 22:52:48 -04:00
parisc PCI changes for the v3.12 merge window: 2013-09-03 16:24:35 -07:00
parport drivers: parport: Kconfig: exclude h8300 for PARPORT_PC 2013-08-30 12:08:04 -07:00
pci ARM: driver updates for 3.13 2013-11-11 17:05:37 +09:00
pcmcia Driver Core / sysfs patches for 3.13-rc1 2013-11-07 11:42:15 +09:00
phy usb: patches for v3.13 2013-10-24 16:18:40 +01:00
pinctrl pinctrl: single: Fix build when not built on ARM 2013-10-18 16:43:06 -07:00
platform platform/x86: fix asus-wmi build error 2013-10-23 07:57:57 +01:00
pnp PNP: convert bus code to use dev_groups 2013-10-16 18:36:02 -07:00
power Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00
pps Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00
ps3 Drivers: misc: remove __dev* attributes. 2013-01-03 15:57:16 -08:00
ptp PTP: convert class code to use dev_groups 2013-07-26 18:05:17 -07:00
pwm ARM: SoC cleanups for 3.12 2013-09-06 13:21:16 -07:00
rapidio rapidio: convert bus code to use dev_groups 2013-10-16 18:36:03 -07:00
regulator Merge remote-tracking branch 'regulator/fix/wm8350' into regulator-linus 2013-09-30 12:04:33 +01:00
remoteproc remoteproc: don't use PTR_RET(). 2013-07-15 11:25:04 +09:30
reset reset: NULL deref on allocation failure 2013-04-12 10:26:24 +02:00
rpmsg A small pull request consisting of: 2013-05-07 14:02:00 -07:00
rtc HID RTC: Open sensor hub open close 2013-10-01 22:06:15 +01:00
s390 s390/scm_blk: fix endless loop for requests != REQ_TYPE_FS 2013-11-06 14:32:22 +01:00
sbus bbc_i2c: fix section mismatch warning 2013-03-31 19:29:12 -04:00
scsi Driver Core / sysfs patches for 3.13-rc1 2013-11-07 11:42:15 +09:00
sfi drivers/sfi: sfi_acpi.c needs sysfs.h 2011-10-31 19:31:57 -04:00
sh Merge branch 'pm-assorted' 2013-06-28 13:01:40 +02:00
sn Drivers: misc: remove __dev* attributes. 2013-01-03 15:57:16 -08:00
spi Merge remote-tracking branch 'spi/fix/s3c64xx' into spi-linus 2013-10-07 14:51:59 +01:00
ssb ssb: convert bus code to use dev_groups 2013-10-16 18:36:03 -07:00
staging Staging driver update for 3.13-rc1 2013-11-07 15:07:58 +09:00
target target/pscsi: fix return value check 2013-10-25 10:42:09 -07:00
tc include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
thermal Merge branch 'x86_pkg_temp' of .git into for-rc 2013-10-21 11:26:45 +08:00
tty Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2013-11-08 08:24:38 +09:00
uio Char/Misc patches for 3.13-rc1 2013-11-07 09:41:06 +09:00
usb ARM: SoC DT updates for 3.13 2013-11-11 17:34:56 +09:00
uwb Driver Core / sysfs patches for 3.13-rc1 2013-11-07 11:42:15 +09:00
vfio VFIO: vfio_iommu_type1: fix bug caused by break in nested loop 2013-10-11 10:40:46 -06:00
vhost vhost/scsi: Fix incorrect usage of get_user_pages_fast write parameter 2013-10-25 11:03:34 -07:00
video Merge branch 'parisc-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux 2013-11-11 18:15:25 +09:00
virt Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2012-12-18 09:58:09 -08:00
virtio virtio: convert bus code to use dev_groups 2013-10-16 18:40:57 -07:00
vlynq drivers/vlynq: remove depends on CONFIG_EXPERIMENTAL 2013-01-17 12:11:27 -08:00
vme vme: vme_ca91cx42.c: fix to pass correct device identity to free_irq() 2013-08-27 21:49:26 -07:00
w1 w1-gpio: Use devm_* functions 2013-10-29 16:58:18 -07:00
watchdog watchdog: sunxi: Fix section mismatch 2013-10-13 20:02:03 +02:00
xen xenbus: convert bus code to use dev_groups 2013-10-16 18:36:03 -07:00
zorro zorro: switch to fixed_size_llseek() 2013-06-29 12:57:28 +04:00
Kconfig drivers: phy: add generic PHY framework 2013-09-27 17:35:41 -07:00
Makefile drivers: phy: add generic PHY framework 2013-09-27 17:35:41 -07:00