ceph: Change system_unbound_wq with system_dfl_wq

system_wq (per-CPU) and system_unbound_wq (unbound) are the older
workqueue name, replaced by system_{percpu|dfl}_wq.
The new workqueues have been introduced by:

  128ea9f6cc ("workqueue: Add system_percpu_wq and system_dfl_wq")

Usage of older workqueues will now trigger a pr_warn_once() because they are
marked as deprecated as per commit:

  64d8eae3f8 ("workqueue: Add warnings and fallback if system_{unbound}_wq is used")

So change the used workqueue with the newer, keeping the same behavior.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Marco Crivellari <marco.crivellari@suse.com>
Reviewed-by: Alex Markuze <amarkuze@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
Marco Crivellari 2026-07-06 18:04:50 +02:00 committed by Ilya Dryomov
parent e939fc6a7b
commit ad2d093781

View File

@ -5757,7 +5757,7 @@ int ceph_mdsc_schedule_reset(struct ceph_mds_client *mdsc,
strscpy(st->last_reason, msg, sizeof(st->last_reason));
spin_unlock(&st->lock);
if (WARN_ON_ONCE(!queue_work(system_unbound_wq, &mdsc->reset_work))) {
if (WARN_ON_ONCE(!queue_work(system_dfl_wq, &mdsc->reset_work))) {
spin_lock(&st->lock);
st->phase = CEPH_CLIENT_RESET_IDLE;
st->last_errno = -EALREADY;