santosh.shilimkar@oracle.com e47db94e10 RDS: Fix the atomicity for congestion map update
Two different threads with different rds sockets may be in
rds_recv_rcvbuf_delta() via receive path. If their ports
both map to the same word in the congestion map, then
using non-atomic ops to update it could cause the map to
be incorrect. Lets use atomics to avoid such an issue.

Full credit to Wengang <wen.gang.wang@oracle.com> for
finding the issue, analysing it and also pointing out
to offending code with spin lock based fix.

Reviewed-by: Leon Romanovsky <leon@leon.nu>
Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-16 19:01:05 -04:00
..
2016-04-16 19:01:05 -04:00
2016-03-02 14:13:19 -05:00
2009-02-26 23:39:25 -08:00
2016-03-02 14:13:17 -05:00
2009-02-26 23:39:26 -08:00
2013-03-08 00:35:44 -05:00
2011-07-01 16:16:19 -07:00
2016-03-18 22:25:41 -04:00