diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-05-22 17:37:25 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:04 -0400 |
commit | 731bdd2eff41808ded960fbe62a83672904e1600 (patch) | |
tree | f45dc3efc827f42ada2aa6a6b56ad350b9d7e673 /fs/bcachefs/bcachefs.h | |
parent | 2eba51a69a7aba82bd4639a71b0906be7e23ca5c (diff) | |
download | lwn-731bdd2eff41808ded960fbe62a83672904e1600.tar.gz lwn-731bdd2eff41808ded960fbe62a83672904e1600.zip |
bcachefs: Add a workqueue for btree io completions
Also, clean up workqueue usage - we shouldn't be using system
workqueues, pretty much everything we do needs to be on our own
WQ_MEM_RECLAIM workqueues.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r-- | fs/bcachefs/bcachefs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h index 3de62571fb9f..2b0c9b1c841b 100644 --- a/fs/bcachefs/bcachefs.h +++ b/fs/bcachefs/bcachefs.h @@ -627,6 +627,7 @@ struct bch_fs { /* BTREE CACHE */ struct bio_set btree_bio; + struct workqueue_struct *io_complete_wq; struct btree_root btree_roots[BTREE_ID_NR]; struct mutex btree_root_lock; @@ -664,7 +665,7 @@ struct bch_fs { struct btree_key_cache btree_key_cache; - struct workqueue_struct *wq; + struct workqueue_struct *btree_update_wq; /* copygc needs its own workqueue for index updates.. */ struct workqueue_struct *copygc_wq; |