From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hal Rosenstock Subject: Re: [PATCH 2/2] rsocket: Update correct rsocket keepalive time Date: Mon, 07 Jul 2014 06:08:31 -0400 Message-ID: <53BA719F.8030809@dev.mellanox.co.il> References: <1404425324-20201-1-git-send-email-sean.hefty@intel.com> <1404425324-20201-2-git-send-email-sean.hefty@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1404425324-20201-2-git-send-email-sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On 7/3/2014 6:08 PM, sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org wrote: > From: Sean Hefty > > When the keepalive time of an rsocket is updated, the > updated information is forwarded to the keepalive service > thread. However, the thread updates the time for the > wrong service as shown: > > tcp_svc_timeouts[svc->cnt] = rs_get_time() + msg.rs->keepalive_time; > > The index into tcp_svc_timeouts should correspond to the > rsocket being updated, not the last one in the list. > > Signed-off-by: Sean Hefty Tested-by: Hal Rosenstock -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html