summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-04-28 12:39:15 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-04-29 14:19:35 -0400
commitf950e2123ab7b04d56d1e4fb44ae98c4d00d6526 (patch)
tree33dbf222bcf51901bee9206e4cc48697ae78a57b
parentfbe437f137871e81792287649b3826323ce0d5b7 (diff)
bcachefs: switch index update wq to CPU_INTENSIVE
-rw-r--r--fs/bcachefs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c
index 748cc4fe1334..aa3adbf2babf 100644
--- a/fs/bcachefs/super.c
+++ b/fs/bcachefs/super.c
@@ -735,9 +735,9 @@ static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts opts)
sizeof(struct btree_node_iter_set);
if (!(c->wq = alloc_workqueue("bcachefs",
- WQ_FREEZABLE|WQ_MEM_RECLAIM|WQ_HIGHPRI, 1)) ||
+ WQ_FREEZABLE|WQ_MEM_RECLAIM|WQ_CPU_INTENSIVE, 1)) ||
!(c->copygc_wq = alloc_workqueue("bcache_copygc",
- WQ_FREEZABLE|WQ_MEM_RECLAIM|WQ_HIGHPRI, 1)) ||
+ WQ_FREEZABLE|WQ_MEM_RECLAIM|WQ_CPU_INTENSIVE, 1)) ||
!(c->journal_reclaim_wq = alloc_workqueue("bcache_journal",
WQ_FREEZABLE|WQ_MEM_RECLAIM|WQ_HIGHPRI, 1)) ||
percpu_ref_init(&c->writes, bch2_writes_disabled,