summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authormajianpeng2012-07-03 04:11:54 +0200
committerNeilBrown2012-07-03 04:11:54 +0200
commit1850753d2e6d9ca7856581ca5d3cf09521e6a5d7 (patch)
tree78b6a6f246d35b13c3a37461187be7453d0972ba /drivers/md/md.c
parentmd/raid5: Do not add data_offset before call to is_badblock (diff)
downloadkernel-qcow2-linux-1850753d2e6d9ca7856581ca5d3cf09521e6a5d7.tar.gz
kernel-qcow2-linux-1850753d2e6d9ca7856581ca5d3cf09521e6a5d7.tar.xz
kernel-qcow2-linux-1850753d2e6d9ca7856581ca5d3cf09521e6a5d7.zip
md/raid5: In ops_run_io, inc nr_pending before calling md_wait_for_blocked_rdev
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>
Diffstat (limited to 'drivers/md/md.c')
0 files changed, 0 insertions, 0 deletions