diff options
Diffstat (limited to 'libbcachefs/alloc_foreground.c')
-rw-r--r-- | libbcachefs/alloc_foreground.c | 8 |
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; |