]> git.baikalelectronics.ru Git - 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)
commit6b486682fd9e71b008e4481d635310a820395d6d
tree2caf24db7d669825538c15efe17473159da57593
parentb23b4e921c73672f3349a754abeec48c271cafab
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