• Linus Torvalds's avatar
    Merge tag 'for-5.19-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 972a278f
    Linus Torvalds authored
    Pull btrfs reverts from David Sterba:
     "Due to a recent report [1] we need to revert the radix tree to xarray
      conversion patches.
    
      There's a problem with sleeping under spinlock, when xa_insert could
      allocate memory under pressure. We use GFP_NOFS so this is a real
      problem that we unfortunately did not discover during review.
    
      I'm sorry to do such change at rc6 time but the revert is IMO the
      safer option, there are patches to use mutex instead of the spin locks
      but that would need more testing. The revert branch has been tested on
      a few setups, all seem ok.
    
      The conversion to xarray will be revisited in the future"
    
    Link: https://lore.kernel.org/linux-btrfs/cover.1657097693.git.fdmanana@suse.com/ [1]
    
    * tag 'for-5.19-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
      Revert "btrfs: turn delayed_nodes_tree into an XArray"
      Revert "btrfs: turn name_cache radix tree into XArray in send_ctx"
      Revert "btrfs: turn fs_info member buffer_radix into XArray"
      Revert "btrfs: turn fs_roots_radix in btrfs_fs_info into an XArray"
    972a278f
disk-io.c 148 KB