Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753148AbbDBOGb (ORCPT ); Thu, 2 Apr 2015 10:06:31 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:33066 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752536AbbDBOG1 (ORCPT ); Thu, 2 Apr 2015 10:06:27 -0400 Message-ID: <551D4CE0.8090706@cogentembedded.com> Date: Thu, 02 Apr 2015 17:06:24 +0300 From: Sergei Shtylyov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Sowmini Varadhan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org CC: chien.yen@oracle.com, davem@davemloft.net, rds-devel@oss.oracle.com, agrover@redhat.com, clm@fb.com, zab@zabbo.net, ajaykumar.hotchandani@oracle.com Subject: Re: [PATCH 6/6] RDS: don't trust the LL_SEND_FULL bit References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1425 Lines: 47 Hello. On 4/2/2015 4:50 PM, Sowmini Varadhan wrote: > We are seeing connections stuck with the LL_SEND_FULL bit getting > set and never cleared. This changes RDS to stop trusting the > LL_SEND_FULL bit and kick krdsd after any time we > see -ENOMEM from the ring allocation code. > Original patch by Chris Mason > Signed-off-by: Sowmini Varadhan > Reviewed-by: Ajaykumar Hotchandani > --- > net/rds/send.c | 11 +++++++---- > net/rds/threads.c | 2 ++ > 2 files changed, 9 insertions(+), 4 deletions(-) > diff --git a/net/rds/send.c b/net/rds/send.c > index 23135a8..9d9c90c 100644 > --- a/net/rds/send.c > +++ b/net/rds/send.c > @@ -1108,8 +1108,10 @@ int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len) > */ > rds_stats_inc(s_send_queued); > > - if (!test_bit(RDS_LL_SEND_FULL, &conn->c_flags)) > - rds_send_xmit(conn); > + ret = rds_send_xmit(conn); > + if (ret == -ENOMEM || ret == -EAGAIN) > + queue_delayed_work(rds_wq, &conn->c_send_w, 1); > + No need for extra new line here. > > rds_message_put(rm); > return payload_len; [...] WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/