Skip to content

RFC net/smc: Fix for race in smc link group termination

Wen Gu linux-s390 lkml netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 12 repliesIn review
  2. v1 RFC2 patches 1 replySuperseded

Changes in v2 from the cover letter

- Declare __smcr_link_clear() as 'static'

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/smc: Resolve the race between link group access and terminationnet/smc/smc.h net/smc/smc_core.c net/smc/smc_core.h+44 -58 replies
2/2net/smc: Resolve the race between SMC-R link access and clearnet/smc/smc_core.c net/smc/smc_core.h+39 -84 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH net v2 0/2] net/smc: Fix for race in smc link group termination

We encountered some crashes recently and they are caused by the race between the access and free of link/link group in smc link group termination. The crashes can be reproduced in frequent abnormal link group termination, like set RNICs up/down.

This set of patches tries to fix this by extending the life cycle of link/link group to ensure that they won't be referred to after cleared or freed.

v1->v2
- Declare __smcr_link_clear() as 'static'

Best wishes,
Wen Gu

Wen Gu (2):
net/smc: Resolve the race between link group access and termination net/smc: Resolve the race between SMC-R link access and clear

 net/smc/smc.h      |  1 +
 net/smc/smc_core.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++++------
 net/smc/smc_core.h |  7 +++++
 3 files changed, 79 insertions(+), 9 deletions(-)
Signature · 1 line
1.8.3.1