As I understand it, this is a follow-on fix for https://github.com/ceph/ceph/pull/34127 so would it make sense to backport (cherry-pick) it right there in that PR?
This update was made using the script "backport-resolve-issue". backport PR https://github.com/ceph/ceph/pull/34127 merge commit 48a311aeb691e2e98bc31426decdbcf61512cbc2 (v14.2.10-85-g48a311aeb69)