]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: return xenstore command failures via response instead of rc
authorJuergen Gross <jgross@suse.com>
Thu, 22 Dec 2016 07:19:47 +0000 (08:19 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:32 +0000 (15:55 -0500)
commit8d641d8d248a9677f9b4652bb79d4eaf3c7723da
tree75c4e0cf0f25a36f1d2538b7be492eaa549e3605
parent50b7a195d6cbbb8248b65e5348593f08048e9b22
xen: return xenstore command failures via response instead of rc

When the xenbus driver does some special handling for a Xenstore
command any error condition related to the command should be returned
via an error response instead of letting the related write operation
fail. Otherwise the user land handler might take wrong decisions
assuming the connection to Xenstore is broken.

While at it try to return the same error values xenstored would
return for those cases.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
OraBug: 25497392

(cherry picked from commit 9a6161fe73bdd3ae4a1e18421b0b20cb7141f680)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xenbus/xenbus_dev_frontend.c