]> git.baikalelectronics.ru Git - kernel.git/commit
RDS: only put sockets that have seen congestion on the poll_waitq
authorAndy Grover <andy.grover@oracle.com>
Thu, 11 Mar 2010 13:50:04 +0000 (13:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2010 04:16:59 +0000 (21:16 -0700)
commitf1610b253410d0149e64c038ab488ccbb408e604
tree72e22772c6326ff554bd030bda35abcb1526249e
parentad00fd510a7513fbc261c045a6f274a672391b1c
RDS: only put sockets that have seen congestion on the poll_waitq

rds_poll_waitq's listeners will be awoken if we receive a congestion
notification. Bad performance may result because *all* polled sockets
contend for this single lock. However, it should not be necessary to
wake pollers when a congestion update arrives if they have never
experienced congestion, and not putting these on the waitq will
hopefully greatly reduce contention.

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