]> git.baikalelectronics.ru Git - kernel.git/commit
net: poll/select low latency socket support
authorEliezer Tamir <eliezer.tamir@linux.intel.com>
Mon, 24 Jun 2013 07:28:03 +0000 (10:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2013 23:35:52 +0000 (16:35 -0700)
commit5587d5069b414902e6a6a23c751aa4842f929453
treebe47e2406605760d949b08d29d988d46c4a20799
parentd357892a772acf91cb7a495915075e48674cdf82
net: poll/select low latency socket support

select/poll busy-poll support.

Split sysctl value into two separate ones, one for read and one for poll.
updated Documentation/sysctl/net.txt

Add a new poll flag POLL_LL. When this flag is set, sock_poll will call
sk_poll_ll if possible. sock_poll sets this flag in its return value
to indicate to select/poll when a socket that can busy poll is found.

When poll/select have nothing to report, call the low-level
sock_poll again until we are out of time or we find something.

Once the system call finds something, it stops setting POLL_LL, so it can
return the result to the user ASAP.

Signed-off-by: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/sysctl/net.txt
fs/select.c
include/net/ll_poll.h
include/uapi/asm-generic/poll.h
net/core/sock.c
net/core/sysctl_net_core.c
net/socket.c