bcachefs: bch2_trans_kmalloc no longer allocates memory with btree locks held
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 28 May 2023 05:09:50 +0000 (01:09 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:03 +0000 (17:10 -0400)
commit78367aaa5af322b64d44a3a3354f4c75c499fef0
treeb82ebe61775f333edb4ca8e26273758049081d33
parentb5fd75669ab1283e7a9caf6288c425108bd382b0
bcachefs: bch2_trans_kmalloc no longer allocates memory with btree locks held

When allocating memory, gfp flags should generally be

 - GFP_NOWAIT|__GFP_NOWARN if btree locks are held
 - GFP_NOFS if in the IO path or otherwise holding resources needed for
   IO submission
 - GFP_KERNEL otherwise

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c