xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: david.vrabel@citrix.com, boris.ostrovsky@oracle.com,
	Juergen Gross <JGross@suse.com>
Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] xenbus: don't bail early from xenbus_dev_request_and_reply()
Date: Thu, 07 Jul 2016 01:32:04 -0600	[thread overview]
Message-ID: <577E219402000078000FBDB6__33109.1980719522$1467876788$gmane$org@prv-mh.provo.novell.com> (raw)
In-Reply-To: <577E1FFE02000078000FBD8C@prv-mh.provo.novell.com>

We must not skip the transaction_end() call for a failed
XS_TRANSACTION_START. The removed code fragment got introduced by
commit 027bd7e899 ("xen/xenbus: Avoid synchronous wait on XenBus
stalling shutdown/restart") without its description really indicating
why it was added (and hence I can't identify whether a more complex
change might be needed here).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 drivers/xen/xenbus/xenbus_xs.c |    3 ---
 1 file changed, 3 deletions(-)

--- 4.7-rc6-xen.orig/drivers/xen/xenbus/xenbus_xs.c
+++ 4.7-rc6-xen/drivers/xen/xenbus/xenbus_xs.c
@@ -249,9 +249,6 @@ void *xenbus_dev_request_and_reply(struc
 
 	mutex_unlock(&xs_state.request_mutex);
 
-	if (IS_ERR(ret))
-		return ret;
-
 	if ((msg->type == XS_TRANSACTION_END) ||
 	    ((req_msg.type == XS_TRANSACTION_START) &&
 	     (msg->type == XS_ERROR)))




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-07-07  7:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-07  7:25 [PATCH 0/2] xenbus: xenbus_dev_request_and_reply() adjustments Jan Beulich
2016-07-07  7:32 ` Jan Beulich [this message]
2016-07-07  7:32 ` [PATCH 2/2] xenbus: simplify xenbus_dev_request_and_reply() Jan Beulich
     [not found] ` <577E219402000078000FBDB6@prv-mh.provo.novell.com>
2016-07-07 11:36   ` [PATCH 1/2] xenbus: don't bail early from xenbus_dev_request_and_reply() David Vrabel
     [not found]   ` <577E3ED0.906@citrix.com>
2016-07-07 12:09     ` Jan Beulich
     [not found]     ` <577E629C02000078000FC32F@prv-mh.provo.novell.com>
2016-07-07 12:17       ` David Vrabel
     [not found]       ` <577E4865.1080307@citrix.com>
2016-07-07 12:23         ` Jan Beulich
     [not found]         ` <577E65CB02000078000FC35B@prv-mh.provo.novell.com>
2016-07-07 13:13           ` David Vrabel
     [not found]           ` <577E5565.40302@citrix.com>
2016-07-07 13:22             ` David Vrabel
     [not found]             ` <577E5793.5030209@citrix.com>
2016-07-07 13:35               ` Jan Beulich
2016-07-08 10:18                 ` David Vrabel
2016-07-08 10:56 ` [PATCH 0/2] xenbus: xenbus_dev_request_and_reply() adjustments David Vrabel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='577E219402000078000FBDB6__33109.1980719522$1467876788$gmane$org@prv-mh.provo.novell.com' \
    --to=jbeulich@suse.com \
    --cc=JGross@suse.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).