summaryrefslogtreecommitdiff
path: root/libbcachefs/alloc_foreground.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-07-18 18:52:15 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-07-18 18:52:15 -0400
commit573d635b2cae28bf89cbca14e0514369511fcc7d (patch)
treeeb4084841ff3092b821260cf5cb2acfa9aad68b7 /libbcachefs/alloc_foreground.c
parent088e17a54ab1e822c1828d95c3dc51588c46341d (diff)
Update bcachefs sources to 1592eaa60418 bcachefs: Btree path tracepoints
Diffstat (limited to 'libbcachefs/alloc_foreground.c')
-rw-r--r--libbcachefs/alloc_foreground.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libbcachefs/alloc_foreground.c b/libbcachefs/alloc_foreground.c
index 1c843a8f..cabf866c 100644
--- a/libbcachefs/alloc_foreground.c
+++ b/libbcachefs/alloc_foreground.c
@@ -662,14 +662,8 @@ alloc:
goto alloc;
}
err:
- if (!ob) {
- rcu_read_lock();
- struct task_struct *t = rcu_dereference(c->copygc_thread);
- if (t)
- wake_up_process(t);
- rcu_read_unlock();
+ if (!ob)
ob = ERR_PTR(-BCH_ERR_no_buckets_found);
- }
if (!IS_ERR(ob))
ob->data_type = data_type;