From: Christoph Hellwig <hch@lst.de>
To: "Petr Tesařík" <petr@tesarici.cz>
Cc: Christoph Hellwig <hch@lst.de>,
m.szyprowski@samsung.com, robin.murphy@arm.com,
petr.tesarik.ext@huawei.com, iommu@lists.linux.dev,
Jonathan Corbet <corbet@lwn.net>
Subject: Re: [PATCH] swiotlb: add the missing dynamic swiotlb check in is_swiotlb_buffer
Date: Sat, 9 Sep 2023 10:40:45 +0200 [thread overview]
Message-ID: <20230909084045.GA10357@lst.de> (raw)
In-Reply-To: <20230908144418.3f078dea@meshulam.tesarici.cz>
On Fri, Sep 08, 2023 at 02:44:18PM +0200, Petr Tesařík wrote:
>
> Not quite. This code is not SMP safe. I believe that:
>
> 1. the value must be read with a READ_ONCE(),
> 2. the memory barrier must precede the read operation.
>
> Do you want to send a v2, or should I send my version instead?
As I'm travelling right now I'd love you to take care of it. It's
probably a new thing and not a v2 so feel free to take full credit.
next prev parent reply other threads:[~2023-09-09 8:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-05 6:44 [PATCH] swiotlb: add the missing dynamic swiotlb check in is_swiotlb_buffer Christoph Hellwig
2023-09-08 12:44 ` Petr Tesařík
2023-09-09 8:40 ` Christoph Hellwig [this message]
2023-09-13 11:10 ` Petr Tesařík
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=20230909084045.GA10357@lst.de \
--to=hch@lst.de \
--cc=corbet@lwn.net \
--cc=iommu@lists.linux.dev \
--cc=m.szyprowski@samsung.com \
--cc=petr.tesarik.ext@huawei.com \
--cc=petr@tesarici.cz \
--cc=robin.murphy@arm.com \
/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.