]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
Btrfs: revert checksum error statistic which can cause a BUG()
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 27 Aug 2012 14:30:03 +0000 (08:30 -0600)
committerChris Mason <chris.mason@oracle.com>
Tue, 28 Aug 2012 20:53:39 +0000 (16:53 -0400)
commit5ee0844d6427e7338e0aba748f62b62d07ea2ed0
tree27980140d38e5158d64f24a5027beb46b52bc476
parent68ce9682a4bb95d6be5529cb57214bf2a1b7d20e
Btrfs: revert checksum error statistic which can cause a BUG()

Commit 442a4f6308e694e0fa6025708bd5e4e424bbf51c added btrfs device
statistic counters for detected IO and checksum errors to Linux 3.5.
The statistic part that counts checksum errors in
end_bio_extent_readpage() can cause a BUG() in a subfunction:
"kernel BUG at fs/btrfs/volumes.c:3762!"
That part is reverted with the current patch.
However, the counting of checksum errors in the scrub context remains
active, and the counting of detected IO errors (read, write or flush
errors) in all contexts remains active.

Cc: stable <stable@vger.kernel.org> # 3.5
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h