Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966193AbdCYDeb (ORCPT ); Fri, 24 Mar 2017 23:34:31 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33154 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965781AbdCYDeX (ORCPT ); Fri, 24 Mar 2017 23:34:23 -0400 Message-ID: <1490412855.24891.10.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: [net-next PATCH v3 5/8] net: Track start of busy loop instead of when it should end From: Eric Dumazet To: Alexander Duyck Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sridhar.samudrala@intel.com, edumazet@google.com, davem@davemloft.net, linux-api@vger.kernel.org Date: Fri, 24 Mar 2017 20:34:15 -0700 In-Reply-To: <20170324170818.15226.51326.stgit@localhost.localdomain> References: <20170324164902.15226.48358.stgit@localhost.localdomain> <20170324170818.15226.51326.stgit@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 629 Lines: 18 On Fri, 2017-03-24 at 10:08 -0700, Alexander Duyck wrote: > From: Alexander Duyck > > This patch flips the logic we were using to determine if the busy polling > has timed out. The main motivation for this is that we will need to > support two different possible timeout values in the future and by > recording the start time rather than when we would want to end we can focus > on making the end_time specific to the task be it epoll or socket based > polling. > > Signed-off-by: Alexander Duyck > --- Acked-by: Eric Dumazet Thanks guys !