From: bvanassche@acm.org (Bart Van Assche)
Subject: [PATCH RFC] nvmet-rdma: use a private workqueue for delete
Date: Tue, 02 Oct 2018 08:02:17 -0700 [thread overview]
Message-ID: <1538492537.193396.1.camel@acm.org> (raw)
In-Reply-To: <d6b9397c-2817-535d-f794-74dc01d8f601@grimberg.me>
On Mon, 2018-10-01@13:12 -0700, Sagi Grimberg wrote:
> > > Queue deletion is done asynchronous when the last reference on
> > > the queue is dropped. Thus, in order to make sure we don't over
> > > allocate under a connect/disconnect storm, we let queue deletion
> > > complete before making forward progress.
> > >
> > > However, given that we flush the system_wq from rdma_cm context
> > > which runs from a workqueue context, we can have a circular
> > > locking complaint [1]. Fix that by using a private workqueue for
> > > queue deletion.
> >
> > Hi Sagi,
> >
> > Thanks for this patch. With this patch applied the warning I reported
> > earlier disappears but a new warning appeared:
>
> Thanks for testing, this is a similar complaint though...
>
> What I'm missing here is why flushing a work that runs on workqueue A
> can't be done from a work that runs on workqueue B. It is
> guaranteed that the id_priv that is used as a barrier from
> rdma_destroy_id is different from the id_priv that is handling the
> connect. So I'm not clear on what is the dependency yet.
>
> Any insights?
Hi Sagi,
Further testing showed that the warning shown in my previous e-mail also
occurs without your patch. Since I'm fine with your patch, feel free to add:
Tested-by: Bart Van Assche <bvanassche at acm.org>
next prev parent reply other threads:[~2018-10-02 15:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-27 18:00 [PATCH RFC] nvmet-rdma: use a private workqueue for delete Sagi Grimberg
2018-09-28 22:14 ` Bart Van Assche
2018-10-01 20:12 ` Sagi Grimberg
2018-10-02 15:02 ` Bart Van Assche [this message]
2018-10-05 7:25 ` Christoph Hellwig
[not found] ` <CAO+b5-oBVw=-wvnWk1EF=RBaZtjX6bjUG+3WABXbvzX9UTu26w@mail.gmail.com>
2018-10-19 1:08 ` Sagi Grimberg
2018-10-19 16:23 ` Bart Van Assche
2018-10-22 8:56 ` Johannes Berg
2018-10-22 21:17 ` Bart Van Assche
2018-10-23 19:18 ` Johannes Berg
2018-10-23 19:54 ` Bart Van Assche
2018-10-23 19:59 ` Johannes Berg
2018-10-23 20:00 ` Johannes Berg
2018-10-23 0:40 ` Sagi Grimberg
2018-10-23 19:22 ` Johannes Berg
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=1538492537.193396.1.camel@acm.org \
--to=bvanassche@acm.org \
/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;
as well as URLs for NNTP newsgroup(s).