]> git.karo-electronics.de Git - linux-beck.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)
committerJuergen Gross <jgross@suse.com>
Fri, 23 Dec 2016 19:06:23 +0000 (20:06 +0100)
commit9a6161fe73bdd3ae4a1e18421b0b20cb7141f680
treeb992ad5f49bc787ca28e278227c55661885efb1b
parent639b08810d6ad74ded2c5f6e233c4fcb9d147168
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>
drivers/xen/xenbus/xenbus_dev_frontend.c