]> 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)
commit553c953202ce1c15078490bfe77ecf7492f7a560
tree2caf24db7d669825538c15efe17473159da57593
parent3c87a54bcfcadaf4a27c704a93c2b5ac37653bd1
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