net: add scheduling point in recvmmsg/sendmmsg
authorEric Dumazet <edumazet@google.com>
Fri, 8 Jan 2016 16:37:20 +0000 (08:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 03:56:29 +0000 (22:56 -0500)
commita78cb84c62c427807d917c5aa8797740f00b0bbe
tree99dbd793f182a509ed68d5542924fe99b9325187
parent3d171f3907329d4b1ce31d5ec9c852c5f0269578
net: add scheduling point in recvmmsg/sendmmsg

Applications often have to reduce number of datagrams
they receive or send per system call to avoid starvation problems.

Really the kernel should take care of this by using cond_resched(),
so that applications can experiment bigger batch sizes.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c