• A
    btrfs: scrub: don't reuse bios and pages · 1bc87793
    Arne Jansen 提交于
    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: NArne Jansen <sensille@gmx.net>
    Signed-off-by: NChris Maosn <chris.mason@oracle.com>
    1bc87793
scrub.c 33.0 KB