From: Juergen Gross <jgross@suse.com>
To: "Viresh Kumar" <viresh.kumar@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
stratos-dev@op-lists.linaro.org,
Erik Schilling <erik.schilling@linaro.org>,
Manos Pitsidianakis <manos.pitsidianakis@linaro.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org
Subject: Re: [PATCH 2/2] xen: privcmd: Add support for ioeventfd
Date: Mon, 9 Oct 2023 12:58:24 +0200 [thread overview]
Message-ID: <6d313c8a-0d3e-40bd-a3f4-86b2ebc5f59a@suse.com> (raw)
In-Reply-To: <20231009105320.scljokj4ies2s5r4@vireshk-i7>
[-- Attachment #1.1.1: Type: text/plain, Size: 1013 bytes --]
On 09.10.23 12:53, Viresh Kumar wrote:
> On 09-10-23, 10:40, Alex Bennée wrote:
>> I thought generally sync points act as full barriers. Doing a bunch of
>> grepping I think ends at:
>>
>> static __always_inline bool __mutex_unlock_fast(struct mutex *lock)
>> {
>> unsigned long curr = (unsigned long)current;
>>
>> return atomic_long_try_cmpxchg_release(&lock->owner, &curr, 0UL);
>> }
>>
>> so you should already have completed your writes by that point.
>
> I am not sure if depending on such indirect mechanisms to implement
> barriers for you is a good idea.
>
> The situation here probably requires explicit barriers to make sure it
> doesn't break in future ?
>
Depending on lock implementations to include the needed barriers is fine IMO.
That is one central objective locks must ensure: to make sure any updates in
a locked region are operating on consistent data and being observable by
others after leaving the locked region.
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3149 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
next prev parent reply other threads:[~2023-10-09 10:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-29 12:29 [PATCH 0/2] xen: privcmd: Add ioeventfd support Viresh Kumar
2023-08-29 12:29 ` [PATCH 1/2] xen: evtchn: Allow shared registration of IRQ handers Viresh Kumar
2023-09-28 15:33 ` Juergen Gross
2023-08-29 12:29 ` [PATCH 2/2] xen: privcmd: Add support for ioeventfd Viresh Kumar
2023-09-29 5:46 ` Juergen Gross
2023-10-05 6:32 ` Viresh Kumar
2023-10-09 9:40 ` Alex Bennée
2023-10-09 10:53 ` Viresh Kumar
2023-10-09 10:58 ` Juergen Gross [this message]
2023-10-05 10:07 ` Viresh Kumar
2023-10-14 12:19 ` [Stratos-dev] " Arnd Bergmann
2023-09-26 7:16 ` [PATCH 0/2] xen: privcmd: Add ioeventfd support Viresh Kumar
2023-09-26 7:17 ` Juergen Gross
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=6d313c8a-0d3e-40bd-a3f4-86b2ebc5f59a@suse.com \
--to=jgross@suse.com \
--cc=alex.bennee@linaro.org \
--cc=erik.schilling@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manos.pitsidianakis@linaro.org \
--cc=mathieu.poirier@linaro.org \
--cc=oleksandr_tyshchenko@epam.com \
--cc=sstabellini@kernel.org \
--cc=stratos-dev@op-lists.linaro.org \
--cc=vincent.guittot@linaro.org \
--cc=viresh.kumar@linaro.org \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.