public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
To: "lilei24@kuaishou.com" <lilei24@kuaishou.com>
Cc: Alex Markuze <amarkuze@redhat.com>,
	"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>,
	"sunzhao03@kuaishou.com" <sunzhao03@kuaishou.com>,
	"slava@dubeyko.com" <slava@dubeyko.com>,
	"idryomov@gmail.com" <idryomov@gmail.com>,
	"noctis.akm@gmail.com" <noctis.akm@gmail.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: Re: RE:  [PATCH] Revert "ceph: when filling trace, call ceph_get_inode outside of mutexes"
Date: Tue, 28 Apr 2026 17:04:47 +0000	[thread overview]
Message-ID: <ab347a1021a5d1d32bf41f6f59cd56b6408516a7.camel@ibm.com> (raw)
In-Reply-To: <37AC14F0-8B00-49A4-892C-B93AE6E9D79B@kuaishou.com>

On Tue, 2026-04-28 at 05:31 +0000, 李磊 wrote:
> 
> > > 

<skipped>

> > 
> > As far as I can see, I was able to reproduce the issue without your patch
> > applied. It looks like I was "lucky" to reproduce the issue. I need to take a
> > deeper look into the issue. But your patch is not responsible for the issue. Let
> > me spend some time to analyze the issue reason and environment.
> > 
> > Have you able to reproduce the issue on your side?
> 
> I’ve tried generic/701 again for several times, but no issues occurred.
> 

I assume that running only generic/701 test-case alone cannot reproduce the
issue. My understanding is that the whole auto group needs to be executed.
Somehow, I was lucky enough to reproduce the issue. :)

> Judging only from the stack trace, I believe it’s a deadlock between
> writeback and memory reclaiming. This dependency chain is as follows
> 
> 1. Several D threads are waiting for the osdc->lock to be released. 
> 2. The osdc->lock is held by kworker/u32:0:241092 which is performing writeback,
>    and kworker/u32:0:241092 is asking for con->mutex to send_request.
> 3. The con->mutex is held by kworker/7:4:308292 which is currently calling do_sendmsg()
> 
> Because of memory shortage, step 3 has to reclaim memory and wait for step 2 to writeback
> And free some folios. But step 2 is blocked by con->mutex which is already held by step3.
> 

I am going to take a deeper look into the issue today. But, probably, one day
could be not enough. :)

Thanks,
Slava.

  reply	other threads:[~2026-04-28 17:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-18  4:12 [PATCH] Revert "ceph: when filling trace, call ceph_get_inode outside of mutexes" Li Lei
2026-04-23 19:50 ` Viacheslav Dubeyko
2026-04-24 18:11   ` Viacheslav Dubeyko
2026-04-24 18:54     ` 李磊
2026-04-27 19:55       ` Viacheslav Dubeyko
2026-04-28  5:31         ` 李磊
2026-04-28 17:04           ` Viacheslav Dubeyko [this message]
2026-04-29 17:39             ` Viacheslav Dubeyko
2026-04-27 19:57 ` Viacheslav Dubeyko

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=ab347a1021a5d1d32bf41f6f59cd56b6408516a7.camel@ibm.com \
    --to=slava.dubeyko@ibm.com \
    --cc=amarkuze@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=idryomov@gmail.com \
    --cc=lilei24@kuaishou.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=noctis.akm@gmail.com \
    --cc=slava@dubeyko.com \
    --cc=sunzhao03@kuaishou.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