aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2014-01-14 10:38:09 +1100
committerNeilBrown <[email protected]>2014-01-14 16:44:07 +1100
commitb50c259e25d9260b9108dc0c2964c26e5ecbe1c1 (patch)
tree146cf33b0f029effcf8c9c413627558979093ce7 /net/lapb/lapb_out.c
parent1cc03eb93245e63b0b7a7832165efdc52e25b4e6 (diff)
md/raid10: fix two bugs in handling of known-bad-blocks.
If we discover a bad block when reading we split the request and potentially read some of it from a different device. The code path of this has two bugs in RAID10. 1/ we get a spin_lock with _irq, but unlock without _irq!! 2/ The calculation of 'sectors_handled' is wrong, as can be clearly seen by comparison with raid1.c This leads to at least 2 warnings and a probable crash is a RAID10 ever had known bad blocks. Cc: [email protected] (v3.1+) Fixes: 856e08e23762dfb92ffc68fd0a8d228f9e152160 Reported-by: Damian Nowak <[email protected]> URL: https://bugzilla.kernel.org/show_bug.cgi?id=68181 Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions