]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix the gfp_mask for the reada_zones radix tree
authorChris Mason <clm@fb.com>
Thu, 4 May 2017 23:08:08 +0000 (16:08 -0700)
committerChris Mason <clm@fb.com>
Thu, 4 May 2017 23:56:11 +0000 (16:56 -0700)
commit877410be3224560d33731600cf360e76101a929d
treede8fb04851d438df09674e02002e28ce8657af76
parent19836583121bd0a8de9e7aa0abc435f199581dd9
btrfs: fix the gfp_mask for the reada_zones radix tree

Commits 2f5a36ded957 and 3e9a407a6101eb added preallocation for the
reada radix trees and also switched them over to GFP_KERNEL for the
default gfp mask.

Since we're doing radix tree insertions under spinlocks, we need
to make sure the mask doesn't allow sleeping.  This fix keeps
the radix preallocation but switches back to the original gfp_mask.

Reported-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/disk-io.c
fs/btrfs/volumes.c