]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
bcache: Give btree_io_wq correct semantics again
authorKai Krakow <kai@kaishome.de>
Wed, 10 Feb 2021 05:07:26 +0000 (13:07 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:37 +0000 (18:31 +0200)
commita32d3689b7cee0304541a8dd5adaa6a9b3a9b0a6
treef56e8b15c1178092166b9a2cdb357ab6b137c9bc
parentb412854b103606a4880bfdf5692e571c238f0835
bcache: Give btree_io_wq correct semantics again

BugLink: https://bugs.launchpad.net/bugs/1918974
commit d797bd9897e3559eb48d68368550d637d32e468c upstream.

Before killing `btree_io_wq`, the queue was allocated using
`create_singlethread_workqueue()` which has `WQ_MEM_RECLAIM`. After
killing it, it no longer had this property but `system_wq` is not
single threaded.

Let's combine both worlds and make it multi threaded but able to
reclaim memory.

Cc: Coly Li <colyli@suse.de>
Cc: stable@vger.kernel.org # 5.4+
Signed-off-by: Kai Krakow <kai@kaishome.de>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/md/bcache/btree.c