]> git.baikalelectronics.ru Git - kernel.git/commit
RDS/TCP: Wait to wake thread when write space available
authorAndy Grover <andy.grover@oracle.com>
Thu, 11 Mar 2010 13:49:58 +0000 (13:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2010 04:16:55 +0000 (21:16 -0700)
commit9647f3254140032cfea01ce8e243b3fc9408117c
tree8aa3e7a354620a0d67a403aedd056c9a58b4e57a
parentf3af418145c37a16c217402f9e21d96aa41cd19c
RDS/TCP: Wait to wake thread when write space available

Instead of waking the send thread whenever any send space is available,
wait until it is at least half empty. This is modeled on how
sock_def_write_space() does it, and may help to minimize context
switches.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp_send.c