Commit f4c6318f authored by D. Wythe's avatar D. Wythe Committed by Litao Jiao
Browse files

anolis: net/smc: fix deadlock when lgr terminating

anolis inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I79GVV
CVE: NA

Reference: https://gitee.com/anolis/cloud-kernel/commit/a3dbfaa26d95e1e9775869699663dbf2ff6e60e7



--------------------------------

ANBZ: #1742

A potential deadlock may occur in the following scenarios:

				smc_close
__smc_lgr_terminate
				lock_sock
lock_sock

smc_conn_kill

smc_cdc_wait_pend_tx_wr

wait_event(cdc_pend_tx_wq)

Once SMC link is not available, pending CDC may not receive
their corresponding cqe. Hence, a potential deadlock has occurred.

Signed-off-by: default avatarD. Wythe <alibuda@linux.alibaba.com>
Acked-by: default avatarTony Lu <tonylu@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/577


Signed-off-by: default avatarGengbiao Shen <shengengbiao@sangfor.com.cn>
parent 7dad816c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment