Re: About commit "io: change inX() to have their own IO barrier overrides"

From: Sinan Kaya
Date: Thu Mar 05 2020 - 22:44:13 EST


On 3/3/2020 11:40 AM, Arnd Bergmann wrote:
>> - ret = read##bw(PCI_IOBASE + addr);
>> + __io_pbr();
>> + ret = __raw_read##bw(PCI_IOBASE + addr);
>> + __io_pbr();
> __io_par();
>

Why do we need to change read##bw above?

read##bw already provides strong ordering guarantees across multiple
architectures.