]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
btrfs: scrub: don't reuse bios and pages
authorArne Jansen <sensille@gmx.net>
Sat, 28 May 2011 19:57:55 +0000 (21:57 +0200)
committerChris Mason <chris.mason@oracle.com>
Sat, 4 Jun 2011 12:03:17 +0000 (08:03 -0400)
commit1bc8779349d6278e2713a1ff94418c2a6746a791
tree2caf24db7d669825538c15efe17473159da57593
parentff5714cca971848963b87d6b477c16ca8abbaa54
btrfs: scrub: don't reuse bios and pages

The current scrub implementation reuses bios and pages as often as possible,
allocating them only on start and releasing them when finished. This leads
to more problems with the block layer than it's worth. The elevator gets
confused when there are more pages added to the bio than bi_size suggests.
This patch completely rips out the reuse of bios and pages and allocates
them freshly for each submit.

Signed-off-by: Arne Jansen <sensille@gmx.net>
Signed-off-by: Chris Maosn <chris.mason@oracle.com>
fs/btrfs/scrub.c