From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751131AbcGGMJk (ORCPT ); Thu, 7 Jul 2016 08:09:40 -0400 Received: from prv-mh.provo.novell.com ([137.65.248.74]:47745 "EHLO prv-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbcGGMJe convert rfc822-to-8bit (ORCPT ); Thu, 7 Jul 2016 08:09:34 -0400 Message-Id: <577E629C02000078000FC32F@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.0 Date: Thu, 07 Jul 2016 06:09:32 -0600 From: "Jan Beulich" To: Cc: , , "Juergen Gross" , Subject: Re: [Xen-devel] [PATCH 1/2] xenbus: don't bail early from xenbus_dev_request_and_reply() References: <577E1FFE02000078000FBD8C@prv-mh.provo.novell.com> <577E219402000078000FBDB6@prv-mh.provo.novell.com> <577E3ED0.906@citrix.com> In-Reply-To: <577E3ED0.906@citrix.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 >>> On 07.07.16 at 13:36, wrote: > On 07/07/16 08:32, Jan Beulich wrote: >> 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). > > If sending the XS_TRANSACTION_END message failed, then the transaction > is still open and transaction_end() should not be called. > > However, if sending an XS_TRANSACTION_START failed, then > transaction_end() should be called. > > So, yes a more complex fix is needed here. Well, both of the things you name are what happens with the patch in place. So if those two conditions are all that needs to be satisfied, then no more complex change is needed afaict (and was the behavior before the cross referenced commit) - the question really is whether that other commit meant to deal with something _beyond_ those two things. Jan