diff options
author | Jan Beulich <JBeulich@suse.com> | 2016-07-07 07:32:04 (GMT) |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-07-08 10:14:26 (GMT) |
commit | 7469be95a487319514adce2304ad2af3553d2fc9 (patch) | |
tree | 65b84763bdd0b7b99a173755401fb9975f2210f1 /drivers/xen/balloon.c | |
parent | 0beef634b86a1350c31da5fcc2992f0d7c8a622b (diff) | |
download | linux-7469be95a487319514adce2304ad2af3553d2fc9.tar.xz |
xenbus: don't bail early from xenbus_dev_request_and_reply()
xenbus_dev_request_and_reply() needs to track whether a transaction is
open. For XS_TRANSACTION_START messages it calls transaction_start()
and for XS_TRANSACTION_END messages it calls transaction_end().
If sending an XS_TRANSACTION_START message fails or responds with an
an error, the transaction is not open and transaction_end() must be
called.
If sending an XS_TRANSACTION_END message fails, the transaction is
still open, but if an error response is returned the transaction is
closed.
Commit 027bd7e89906 ("xen/xenbus: Avoid synchronous wait on XenBus
stalling shutdown/restart") introduced a regression where failed
XS_TRANSACTION_START messages were leaving the transaction open. This
can cause problems with suspend (and migration) as all transactions
must be closed before suspending.
It appears that the problematic change was added accidentally, so just
remove it.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen/balloon.c')
0 files changed, 0 insertions, 0 deletions