Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1380649 > unrolled thread

Re: [net][PATCH v2 2/2] RDS: Fix the atomicity for congestion map update

Started byDavid Miller <davem@davemloft.net>
First post2016-04-17 01:10 +0200
Last post2016-04-17 01:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [net][PATCH v2 2/2] RDS: Fix the atomicity for congestion map  update David Miller <davem@davemloft.net> - 2016-04-17 01:10 +0200

#1380649 — Re: [net][PATCH v2 2/2] RDS: Fix the atomicity for congestion map update

FromDavid Miller <davem@davemloft.net>
Date2016-04-17 01:10 +0200
SubjectRe: [net][PATCH v2 2/2] RDS: Fix the atomicity for congestion map update
Message-ID<roHvI-2PY-35@gated-at.bofh.it>
From: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Date: Thu, 14 Apr 2016 10:43:27 -0700

> 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>

Applied.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web