netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH net v2 0/2] net/smc: Fix for race in smc link group termination
@ 2021-12-28 15:13 Wen Gu
  2021-12-28 15:13 ` [RFC PATCH net v2 1/2] net/smc: Resolve the race between link group access and termination Wen Gu
  2021-12-28 15:13 ` [RFC PATCH net v2 2/2] net/smc: Resolve the race between SMC-R link access and clear Wen Gu
  0 siblings, 2 replies; 15+ messages in thread
From: Wen Gu @ 2021-12-28 15:13 UTC (permalink / raw)
  To: kgraul, davem, kuba; +Cc: linux-s390, netdev, linux-kernel, dust.li, tonylu

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

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-01-07 12:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28 15:13 [RFC PATCH net v2 0/2] net/smc: Fix for race in smc link group termination Wen Gu
2021-12-28 15:13 ` [RFC PATCH net v2 1/2] net/smc: Resolve the race between link group access and termination Wen Gu
2021-12-29 12:56   ` Karsten Graul
2021-12-31  9:44     ` Wen Gu
2022-01-03 10:36       ` Karsten Graul
2022-01-05  8:27         ` Wen Gu
2022-01-05 12:03           ` Karsten Graul
2022-01-06 13:02             ` Wen Gu
2022-01-07  9:54               ` Karsten Graul
2022-01-07 12:04                 ` Wen Gu
2021-12-28 15:13 ` [RFC PATCH net v2 2/2] net/smc: Resolve the race between SMC-R link access and clear Wen Gu
2021-12-29 12:51   ` Karsten Graul
2021-12-30  4:00     ` dust.li
2021-12-31  9:45     ` Wen Gu
2022-01-03 10:39       ` Karsten Graul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).