https://github.com/torvalds/linux
Revision 1850753d2e6d9ca7856581ca5d3cf09521e6a5d7 authored by majianpeng on 03 July 2012, 02:11:54 UTC, committed by NeilBrown on 03 July 2012, 02:11:54 UTC
In ops_run_io(), the call to md_wait_for_blocked_rdev will decrement
nr_pending so we lose the reference we hold on the rdev.
So atomic_inc it first to maintain the reference.

This bug was introduced by commit  73e92e51b7969ef5477d
    md/raid5.  Don't write to known bad block on doubtful devices.

which appeared in 3.0, so patch is suitable for stable kernels since
then.

Cc: stable@vger.kernel.org
Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
1 parent 6c0544e
History
Tip revision: 1850753d2e6d9ca7856581ca5d3cf09521e6a5d7 authored by majianpeng on 03 July 2012, 02:11:54 UTC
md/raid5: In ops_run_io, inc nr_pending before calling md_wait_for_blocked_rdev
Tip revision: 1850753
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 208.2 KB
Makefile -rw-r--r-- 46.0 KB
README -rw-r--r-- 17.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top