Skip to content
  • Arne Jansen's avatar
    btrfs: scrub: don't reuse bios and pages · 1bc87793
    Arne Jansen authored
    
    
    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: default avatarArne Jansen <sensille@gmx.net>
    Signed-off-by: default avatarChris Maosn <chris.mason@oracle.com>
    1bc87793