From: David Miller Subject: Re: [PATCH net v1 1/1] tipc: fix hanging poll() for stream sockets Date: Thu, 28 Dec 2017 12:16:10 -0500 (EST) Message-ID: <20171228.121610.1404170008079035024.davem@davemloft.net> References: <20171228110306.29607-1-parthasarathy.bhuvaragan@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, jon.maloy@ericsson.com To: parthasarathy.bhuvaragan@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:51108 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932123AbdL1RQL (ORCPT ); Thu, 28 Dec 2017 12:16:11 -0500 In-Reply-To: <20171228110306.29607-1-parthasarathy.bhuvaragan@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Parthasarathy Bhuvaragan Date: Thu, 28 Dec 2017 12:03:06 +0100 > In commit 42b531de17d2f6 ("tipc: Fix missing connection request > handling"), we replaced unconditional wakeup() with condtional > wakeup for clients with flags POLLIN | POLLRDNORM | POLLRDBAND. > > This breaks the applications which do a connect followed by poll > with POLLOUT flag. These applications are not woken when the > connection is ESTABLISHED and hence sleep forever. > > In this commit, we fix it by including the POLLOUT event for > sockets in TIPC_CONNECTING state. > > Fixes: 42b531de17d2f6 ("tipc: Fix missing connection request handling") > Acked-by: Jon Maloy > Signed-off-by: Parthasarathy Bhuvaragan Applied and queued up for -stable.