Commit 6c36318c authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: key cache: Don't hold btree locks while using GFP_RECLAIM



This is something we need to do more widely: instead of bothering with
GFP_NOIO/GFP_NOFS, if we need to allocate memory while holding locks:

 - first attempt the allocation with GFP_NOWAIT
 - if that fails, drop btree locks with bch2_trans_unlock(), then
   retry with GFP_KERNEL.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7af365eb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment