From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756311AbcGGHcd (ORCPT ); Thu, 7 Jul 2016 03:32:33 -0400 Received: from prv-mh.provo.novell.com ([137.65.248.74]:58927 "EHLO prv-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756237AbcGGHcG convert rfc822-to-8bit (ORCPT ); Thu, 7 Jul 2016 03:32:06 -0400 Message-Id: <577E219402000078000FBDB6@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.0 Date: Thu, 07 Jul 2016 01:32:04 -0600 From: "Jan Beulich" To: , , "Juergen Gross" Cc: , "Konrad Rzeszutek Wilk" , Subject: [PATCH 1/2] xenbus: don't bail early from xenbus_dev_request_and_reply() References: <577E1FFE02000078000FBD8C@prv-mh.provo.novell.com> In-Reply-To: <577E1FFE02000078000FBD8C@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Konrad Rzeszutek Wilk --- 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)))