Re: [PATCH v3 2/2] xenbus: req->err should be updated before req->state

From: Boris Ostrovsky
Date: Fri Mar 06 2020 - 06:13:45 EST




On 3/3/20 5:14 PM, Dongli Zhang wrote:
> This patch adds the barrier to guarantee that req->err is always updated
> before req->state.
>
> Otherwise, read_reply() would not return ERR_PTR(req->err) but
> req->body, when process_writes()->xb_write() is failed.
>
> Signed-off-by: Dongli Zhang <dongli.zhang@xxxxxxxxxx>

Applied to for-linus-5.6b.

-boris