]> git.baikalelectronics.ru Git - kernel.git/commit
net: Track start of busy loop instead of when it should end
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 24 Mar 2017 17:08:18 +0000 (10:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Mar 2017 03:49:31 +0000 (20:49 -0700)
commit48d571111023d9a14b10b433023f6fe357cb1156
treecb29ca52bc837c095ee470e8caf6410af54f9b03
parente6bff8b5398fa3c6e04910ee0e5dda35881094ca
net: Track start of busy loop instead of when it should end

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 <alexander.h.duyck@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/select.c
include/net/busy_poll.h
net/core/dev.c