From: Vivek Goyal <vgoyal@redhat.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: Jeffle Xu <jefflexu@linux.alibaba.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
linux-fsdevel@vger.kernel.org,
virtualization@lists.linux-foundation.org,
virtio-fs-list <virtio-fs@redhat.com>,
Joseph Qi <joseph.qi@linux.alibaba.com>,
Liu Bo <bo.liu@linux.alibaba.com>
Subject: Re: [PATCH 2/2] virtiofs: reduce lock contention on fpq->lock
Date: Tue, 7 Sep 2021 14:10:47 -0400 [thread overview]
Message-ID: <YTerJ1bvGSfOYjBY@redhat.com> (raw)
In-Reply-To: <CAJfpegt48RM_y7mOj5EBcohF0zEmE4D6D7sHNgYgKNgGqDgTsA@mail.gmail.com>
On Tue, Sep 07, 2021 at 10:57:07AM +0200, Miklos Szeredi wrote:
> On Thu, 12 Aug 2021 at 07:46, Jeffle Xu <jefflexu@linux.alibaba.com> wrote:
> >
> > From: Liu Bo <bo.liu@linux.alibaba.com>
> >
> > Since %req has been removed from fpq->processing_list, no one except
> > request_wait_answer() is looking at this %req and request_wait_answer()
> > waits only on FINISH flag, it's OK to remove fpq->lock after %req is
> > dropped from the list.
>
> I'll accept a patch to remove FR_SENT completely from virtiofs.
>
Recently I was also looking at FR_SENT flag and was wondering if it
is atomic bit flag, then why do we need to take spin lock around it.
Probably we need just some barrier if code needs it but not necessarily
any lock.
But I agree that FR_SENT seems not usable from virtiofs point of view
as we don't have support for interrupt request.
> This flag is used for queuing interrupts but interrupts are not yet
> implemented in virtiofs. When blocking lock support is added the
> interrupt handling needs to be properly designed.
Hmm.., I did not think about this. I was getting ready to post patches
for blocking posix locks but it does not have any support for interrupting
the locking request (either blocked or queued).
Is implementing interrupt support a requirement for getting blocking
posix lock patches in?
Thanks
Vivek
next prev parent reply other threads:[~2021-09-07 18:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-12 5:46 [PATCH 0/2] virtiofs: miscellaneous fixes Jeffle Xu
2021-08-12 5:46 ` [PATCH 1/2] fuse: disable atomic_o_trunc if no_open is enabled Jeffle Xu
2021-09-07 8:34 ` Miklos Szeredi
2021-09-08 9:41 ` JeffleXu
2021-08-12 5:46 ` [PATCH 2/2] virtiofs: reduce lock contention on fpq->lock Jeffle Xu
2021-09-07 8:57 ` Miklos Szeredi
2021-09-07 18:10 ` Vivek Goyal [this message]
2021-09-07 2:07 ` [PATCH 0/2] virtiofs: miscellaneous fixes JeffleXu
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=YTerJ1bvGSfOYjBY@redhat.com \
--to=vgoyal@redhat.com \
--cc=bo.liu@linux.alibaba.com \
--cc=jefflexu@linux.alibaba.com \
--cc=joseph.qi@linux.alibaba.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=stefanha@redhat.com \
--cc=virtio-fs@redhat.com \
--cc=virtualization@lists.linux-foundation.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).