diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-15 16:54:30 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-15 20:17:37 -0400 |
commit | 32fbdff2a9954037bb55f3441281376cfcebb8ea (patch) | |
tree | 81064d0de40cc6d19991787b94e8ac3d46d62ddb /libbcachefs/alloc_foreground.c | |
parent | 2d605676853ffd147f5f9591c833e44ab1d3e7a1 (diff) |
Update bcachefs sources to 4a7a003763f5 bcachefs: Opt_durability can now be set via bch2_opt_set_sb()
Diffstat (limited to 'libbcachefs/alloc_foreground.c')
-rw-r--r-- | libbcachefs/alloc_foreground.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libbcachefs/alloc_foreground.c b/libbcachefs/alloc_foreground.c index cabf866c..1c843a8f 100644 --- a/libbcachefs/alloc_foreground.c +++ b/libbcachefs/alloc_foreground.c @@ -662,8 +662,14 @@ alloc: goto alloc; } err: - if (!ob) + if (!ob) { + rcu_read_lock(); + struct task_struct *t = rcu_dereference(c->copygc_thread); + if (t) + wake_up_process(t); + rcu_read_unlock(); ob = ERR_PTR(-BCH_ERR_no_buckets_found); + } if (!IS_ERR(ob)) ob->data_type = data_type; |