From: Jason Gunthorpe <jgg@ziepe.ca>
To: Sagi Grimberg <sagi@grimberg.me>
Cc: Maurizio Lombardi <mlombard@redhat.com>,
Leon Romanovsky <leon@kernel.org>,
linux-rdma@vger.kernel.org, linux-nvme@lists.infradead.org,
parav@mellanox.com
Subject: Re: [PATCH] Revert "IB/core: Fix use workqueue without WQ_MEM_RECLAIM"
Date: Tue, 6 Jun 2023 14:45:35 -0300 [thread overview]
Message-ID: <ZH9wv6UNZtxhxrfw@ziepe.ca> (raw)
In-Reply-To: <09504ea7-186d-9ede-e01f-87849673b9b2@grimberg.me>
On Tue, Jun 06, 2023 at 02:01:04AM +0300, Sagi Grimberg wrote:
>
> > > > > workqueue: WQ_MEM_RECLAIM nvme-wq:nvme_rdma_reconnect_ctrl_work
> > > > > [nvme_rdma] is flushing !WQ_MEM_RECLAIM ib_addr:process_one_req [ib_core]
> > > >
> > > > And why does nvme-wq need WQ_MEM_RECLAIM flag? I wonder if it is really
> > > > needed.
> > >
> > > Adding Sagi Grimberg to cc, he probably knows and can explain it better than me.
> >
> > We already allocate so much memory on these paths it is pretty
> > nonsense to claim they are a reclaim context. One allocation on the WQ
> > is not going to be the problem.
> >
> > Probably this nvme stuff should not be re-using a reclaim marke dWQ
> > for memory allocating work like this, it is kind of nonsensical.
>
> A controller reset runs on this workqueue, which should succeed to allow
> for pages to be flushed to the nvme disk. So I'd say its kind of
> essential that this sequence has a rescuer thread.
So don't run the CM stuff on the same WQ, go to another one without
the reclaim mark?
Jason
next prev parent reply other threads:[~2023-06-06 17:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 15:54 [PATCH] Revert "IB/core: Fix use workqueue without WQ_MEM_RECLAIM" Maurizio Lombardi
2023-05-23 18:28 ` Leon Romanovsky
2023-05-29 15:12 ` Maurizio Lombardi
[not found] ` <ZHebeWlpn68Xa1Hd@ziepe.ca>
2023-06-05 23:01 ` Sagi Grimberg
2023-06-06 17:45 ` Jason Gunthorpe [this message]
2023-06-07 14:59 ` Sagi Grimberg
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=ZH9wv6UNZtxhxrfw@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux-rdma@vger.kernel.org \
--cc=mlombard@redhat.com \
--cc=parav@mellanox.com \
--cc=sagi@grimberg.me \
/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