ceph: Change system_unbound_wq with system_dfl_wq
PATCH 1/1 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:
128ea9f6ccfb ("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:
64d8eae3f895 ("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 <[email protected]>
Signed-off-by Marco Crivellari <[email protected]>
--- fs/ceph/mds_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/mds_client.c +1 -1
@@ -5742,7 +5742,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 ;
Signature · 1 line
2.54.0
Hi Marco,
Thanks for the patch.
Reviewed-by Alex Markuze <[email protected]>
Signature · 1 line
Alex Markuze
Hi Alex,
Quoted 6 lines · Alex Markuze
Hi Marco,
Thanks for the patch.
Reviewed-by Alex Markuze <[email protected]>
Thank you, Alex!
Signature · 3 lines
Marco Crivellari SUSE Labs