xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Andres Lagar Cavilla <andres@lagarcavilla.org>
Cc: "Zhangbo (Oscar)" <oscar.zhangbo@huawei.com>,
	"Huangpeng (Peter)" <peter.huangpeng@huawei.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	"Herongguang (Stephen)" <herongguang.he@huawei.com>,
	Linqiangmin <linqiangmin@huawei.com>,
	Jan Beulich <JBeulich@suse.com>,
	"Wangyufei (James)" <james.wangyufei@huawei.com>
Subject: Re: gfn_lock() seems useless.
Date: Wed, 3 Feb 2016 10:01:05 -0500	[thread overview]
Message-ID: <20160203150105.GA20732@char.us.oracle.com> (raw)
In-Reply-To: <CADzFZPtJgb9nB+cKh+Jb6AMG51YPsY32hYSyVuwU4XV3Ue_k5w@mail.gmail.com>

On Tue, Feb 02, 2016 at 08:55:50PM -0800, Andres Lagar Cavilla wrote:
> At the time, I had a patch queue for splitting the p2m locking into a tree
> of per-2M locks. Very similar to Linux's split locks. I scaffolded the
> macros to allow for that expansion. Then, I got pulled onto other things.

Could you post/point folks to your patch queue?

Thanks.
> 
> Andres
> 
> On Tue, Feb 2, 2016 at 8:26 AM, Jan Beulich <JBeulich@suse.com> wrote:
> 
> > >>> On 02.02.16 at 07:54, <oscar.zhangbo@huawei.com> wrote:
> > > Hi all:
> > > In patch e1e40bccee7490a01ac7d1f759ec2bbafd3c7185, it says that"many
> > > routines can logically assert holding the p2m *FOR A SPECIFIC GFN.*" ,
> > > But I find out that it did nothing for locking a single gfn, in fact  it
> > > still locked the entire p2m list.
> > >
> > > -#define p2m_lock_recursive(p) mm_lock_recursive(p2m, &(p)->lock)
> > > +#define gfn_lock(p,g,o)       mm_lock_recursive(p2m, &(p)->lock)  //'g'
> > is not
> > > used. The entire p2m list is locked.
> > >
> > >
> > > Do we have any plan to lock a specific gfn?
> >
> > This indeed is a long term plan, but afaik no-one is currently
> > doing any work in that direction.
> >
> > Jan
> >
> >

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

      reply	other threads:[~2016-02-03 15:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-02  6:54 gfn_lock() seems useless Zhangbo (Oscar)
2016-02-02 16:26 ` Jan Beulich
2016-02-03  4:55   ` Andres Lagar Cavilla
2016-02-03 15:01     ` Konrad Rzeszutek Wilk [this message]

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=20160203150105.GA20732@char.us.oracle.com \
    --to=konrad.wilk@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=andres@lagarcavilla.org \
    --cc=herongguang.he@huawei.com \
    --cc=james.wangyufei@huawei.com \
    --cc=linqiangmin@huawei.com \
    --cc=oscar.zhangbo@huawei.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=xen-devel@lists.xen.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).