From: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
To: "idryomov@gmail.com" <idryomov@gmail.com>,
"ionut.nechita@windriver.com" <ionut.nechita@windriver.com>
Cc: "ionut_n2001@yahoo.com" <ionut_n2001@yahoo.com>,
"sage@newdream.net" <sage@newdream.net>,
Xiubo Li <xiubli@redhat.com>,
"linux-rt-devel@lists.linux.dev" <linux-rt-devel@lists.linux.dev>,
"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>,
"rostedt@goodmis.org" <rostedt@goodmis.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Alex Markuze <amarkuze@redhat.com>,
"jlayton@kernel.org" <jlayton@kernel.org>,
"bigeasy@linutronix.de" <bigeasy@linutronix.de>,
"clrkwllms@kernel.org" <clrkwllms@kernel.org>,
"superm1@kernel.org" <superm1@kernel.org>,
"jkosina@suse.com" <jkosina@suse.com>
Subject: RE: [PATCH] ceph: add timeout protection to ceph_mdsc_sync() path
Date: Wed, 18 Feb 2026 20:04:03 +0000 [thread overview]
Message-ID: <aef4d7dbea2fe3301ac922a7a189ecc8c93314d5.camel@ibm.com> (raw)
In-Reply-To: <20260218195738.49204-1-ionut.nechita@windriver.com>
On Wed, 2026-02-18 at 21:57 +0200, Ionut Nechita (Wind River) wrote:
> Hi Slava,
>
> Thanks for testing and reproducing this with generic/013.
>
> Looking at the stack trace you shared:
>
> ceph_mdsc_sync+0x4b4 -> wait_for_completion(&req->r_safe_completion)
> ceph_sync_fs
> sync_filesystem
> __x64_sys_syncfs
>
> This is the same pattern we see in the original report - the sync path
> blocks indefinitely on wait_for_completion() with no timeout. In your
> case it's ceph_mdsc_sync() hanging on r_safe_completion, which is
> exactly what patch 2/3 ("ceph: add timeout protection to
> ceph_mdsc_sync() path") addresses.
>
> The root cause may differ from the original IPv6/EADDRNOTAVAIL scenario,
> but the symptom and the fix are the same - these wait_for_completion()
> calls in the sync path need timeout protection regardless of what causes
> the underlying delay.
>
> All three patches are now also on LKML:
>
> 1/3 - libceph: handle EADDRNOTAVAIL more gracefully (v2)
> 2/3 - ceph: add timeout protection to ceph_mdsc_sync() path
> 3/3 - ceph: add timeout protection to ceph_osdc_sync() path
>
> I've also added more details and debug information to the Ceph tracker
> issue at https://urldefense.proofpoint.com/v2/url?u=https-3A__tracker.ceph.com_issues_74897&d=DwIDAg&c=BSDicqBQBDjDI9RkVyTcHQ&r=q5bIm4AXMzc8NJu1_RGmnQ2fMWKq4Y4RAkElvUgSs00&m=ty8gR4OjrwFXUQPjG9Dm4EapzO4Hwyj7aAX6INwulJY0GjoU0pTf7khYkXwrksDT&s=3fOX8o4od1TodhJw8SHCNjR4huXJS6VsRFYD6791DWM&e= - it might help with
> your investigation.
Frankly speaking, I don't see the situation of blocked thread if I am adding
debug output. It looks like a race condition. And I am not sure now that adding
timeout is the proper fix. Probably, we have some issue that needs to be fixed
and timeout looks like workaround but not the fix. I don't think that I have the
IPv6/EADDRNOTAVAIL case on my side.
Thanks,
Slava.
next prev parent reply other threads:[~2026-02-18 20:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-08 13:18 [PATCH] ceph: add timeout protection to ceph_mdsc_sync() path Ionut Nechita (Wind River)
2026-02-09 23:03 ` Viacheslav Dubeyko
2026-02-11 7:21 ` Sebastian Andrzej Siewior
2026-02-13 7:51 ` Ionut Nechita (Wind River)
2026-02-17 21:52 ` Viacheslav Dubeyko
2026-02-18 19:57 ` Ionut Nechita (Wind River)
2026-02-18 20:04 ` Viacheslav Dubeyko [this message]
2026-02-19 9:37 ` Alex Markuze
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aef4d7dbea2fe3301ac922a7a189ecc8c93314d5.camel@ibm.com \
--to=slava.dubeyko@ibm.com \
--cc=amarkuze@redhat.com \
--cc=bigeasy@linutronix.de \
--cc=ceph-devel@vger.kernel.org \
--cc=clrkwllms@kernel.org \
--cc=idryomov@gmail.com \
--cc=ionut.nechita@windriver.com \
--cc=ionut_n2001@yahoo.com \
--cc=jkosina@suse.com \
--cc=jlayton@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=rostedt@goodmis.org \
--cc=sage@newdream.net \
--cc=superm1@kernel.org \
--cc=xiubli@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox