lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 18 Feb 2015 17:32:56 +0100
From:	Oleg Nesterov <oleg@...hat.com>
To:	Peter Zijlstra <peterz@...radead.org>
Cc:	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
	Kirill Tkhai <ktkhai@...allels.com>,
	linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...hat.com>,
	Josh Poimboeuf <jpoimboe@...hat.com>
Subject: Re: [PATCH 2/2] [PATCH] sched: Add smp_rmb() in task rq locking
	cycles

On 02/18, Peter Zijlstra wrote:
>
> On Wed, Feb 18, 2015 at 04:53:34PM +0100, Oleg Nesterov wrote:
> > On 02/17, Paul E. McKenney wrote:
> > >
> > >       |   mb  |  wmb  |  rmb  |  rbd  |  acq  |  rel  |  ctl  |
> > >  -----+-------+-------+-------+-------+-------+-------+-------+
> > >    mb |   Y   |       |   Y   |   y   |   Y   |       |   Y   +
> > >  -----+-------+-------+-------+-------+-------+-------+-------+
> > >   wmb |   Y   |       |   Y   |   y   |   Y   |       |   Y   +
> > >  -----+-------+-------+-------+-------+-------+-------+-------+
> > >   rmb |       |       |       |       |       |       |       +
> > >  -----+-------+-------+-------+-------+-------+-------+-------+
> > >   rbd |       |       |       |       |       |       |       +
> > >  -----+-------+-------+-------+-------+-------+-------+-------+
> > >   acq |       |       |       |       |       |       |       +
> > >  -----+-------+-------+-------+-------+-------+-------+-------+
> > >   rel |   Y   |       |   Y   |   y   |   Y   |       |   Y   +
> > >  -----+-------+-------+-------+-------+-------+-------+-------+
> > >   ctl |       |       |       |       |       |       |       +
> > >  -----+-------+-------+-------+-------+-------+-------+-------+
> >
> > OK, so "acq" can't pair with "acq", and I am not sure I understand.
>
> Please consider the table in the context of message passing; that is
> what Paul proposed. Your example from sysvsems, while interesting, would
> not fit the general scenario of message passing.

Ah, yeeees, sorry. Somehow I completely missed that part of Paul's email.

> This too illustrates a problem with that approach, people can't read, so
> they'll pick the wrong table to look at.

At least we know that I certainly can't ;)

Thanks,

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ