diff options
author | Dongli Zhang <dongli.zhang@oracle.com> | 2020-03-03 23:14:23 +0100 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2020-03-05 16:42:01 +0100 |
commit | 8130b9d5b5abf26f9927b487c15319a187775f34 (patch) | |
tree | 647cbd1ff16e7cc558524d766b95f7e913b16494 /include/xen/xenbus.h | |
parent | xenbus: req->body should be updated before req->state (diff) | |
download | linux-8130b9d5b5abf26f9927b487c15319a187775f34.tar.xz linux-8130b9d5b5abf26f9927b487c15319a187775f34.zip |
xenbus: req->err should be updated before req->state
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@oracle.com>
Link: https://lore.kernel.org/r/20200303221423.21962-2-dongli.zhang@oracle.com
Reviewed-by: Julien Grall <jgrall@amazon.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'include/xen/xenbus.h')
0 files changed, 0 insertions, 0 deletions