[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220106002804.GS6467@ziepe.ca>
Date:   Wed, 5 Jan 2022 20:28:04 -0400
From:   Jason Gunthorpe <jgg@...pe.ca>
To:     Li Zhijian <lizhijian@...fujitsu.com>
Cc:     linux-rdma@...r.kernel.org, zyjzyj2000@...il.com,
        aharonl@...dia.com, leon@...nel.org, linux-kernel@...r.kernel.org,
        mbloch@...dia.com, liweihang@...wei.com, liangwenpeng@...wei.com,
        yangx.jy@...fujitsu.com, rpearsonhpe@...il.com, y-goto@...itsu.com
Subject: Re: [RFC PATCH rdma-next 08/10] RDMA/rxe: Implement flush execution
 in responder side
On Tue, Dec 28, 2021 at 04:07:15PM +0800, Li Zhijian wrote:
> +	while (length > 0) {
> +		va	= (u8 *)(uintptr_t)buf->addr + offset;
> +		bytes	= buf->size - offset;
> +
> +		if (bytes > length)
> +			bytes = length;
> +
> +		arch_wb_cache_pmem(va, bytes);
So why did we need to check that the va was pmem to call this?
Jason
Powered by blists - more mailing lists
 
