From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4AF0D1A286 for ; Tue, 3 Oct 2023 11:13:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF0E2C433C9; Tue, 3 Oct 2023 11:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696331586; bh=CoomkraAX2naxLdTJimxBFRMspUWykUSXyPCNJZ1BW8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SGhsXxpp6iTY5muDKClN5DvXwbzLFsDICH666+I5DWaSc2LPwmDlJ56VTN8J+R0Pd CMLRxJRZkx8K2EMHipevd3J+UnMXaPcXVqBALh5OqSW844JvhHL9LQzgxhXadc+hQX bcjDQ80VjWbsWqzpJ3ZsaPW6v8nWvoLZE71+HoIm91FnbIlj4a0dAdRZjB+YblVHaN hbxkOJbik7QGdXRZd0ZjTKydpC8cvN3J/k6CuIY6PRiaYXNK9KILYRtD+DxDAFs91X AUXDv6Og33U9AMLDlg3tdQGurcGauZFHRJ8vhYHQDoaiZ+asTG4NpUHFIJuPEqwdsx GE7bHM1JfUEaw== Date: Tue, 3 Oct 2023 13:13:02 +0200 From: Simon Horman To: Xin Long Cc: network dev , linux-sctp@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, Eric Dumazet , Paolo Abeni , Marcelo Ricardo Leitner , Xufeng Zhang Subject: Re: [PATCH net] sctp: update hb timer immediately after users change hb_interval Message-ID: References: <75465785f8ee5df2fb3acdca9b8fafdc18984098.1696172660.git.lucien.xin@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <75465785f8ee5df2fb3acdca9b8fafdc18984098.1696172660.git.lucien.xin@gmail.com> On Sun, Oct 01, 2023 at 11:04:20AM -0400, Xin Long wrote: > Currently, when hb_interval is changed by users, it won't take effect > until the next expiry of hb timer. As the default value is 30s, users > have to wait up to 30s to wait its hb_interval update to work. > > This becomes pretty bad in containers where a much smaller value is > usually set on hb_interval. This patch improves it by resetting the > hb timer immediately once the value of hb_interval is updated by users. > > Note that we don't address the already existing 'problem' when sending > a heartbeat 'on demand' if one hb has just been sent(from the timer) > mentioned in: > > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg590224.html Hi Xin Long, I wonder if this warrants a fixes tag, and if so, perhaps: Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Signed-off-by: Xin Long Reviewed-by: Simon Horman