summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWen Gu <guwen@linux.alibaba.com>2022-09-20 09:43:09 +0300
committerPaolo Abeni <pabeni@redhat.com>2022-09-22 13:53:53 +0300
commite738455b2c6dcdab03e45d97de36476f93f557d2 (patch)
tree2f7c8c0ff7053292a39fdfdaa61300f62e54df5c /drivers
parent624aea6bede7fef24dc3daed83f37453c11ebb39 (diff)
downloadlinux-e738455b2c6dcdab03e45d97de36476f93f557d2.tar.xz
net/smc: Stop the CLC flow if no link to map buffers on
There might be a potential race between SMC-R buffer map and link group termination. smc_smcr_terminate_all() | smc_connect_rdma() -------------------------------------------------------------- | smc_conn_create() for links in smcibdev | schedule links down | | smc_buf_create() | \- smcr_buf_map_usable_links() | \- no usable links found, | (rmb->mr = NULL) | | smc_clc_send_confirm() | \- access conn->rmb_desc->mr[]->rkey | (panic) During reboot and IB device module remove, all links will be set down and no usable links remain in link groups. In such situation smcr_buf_map_usable_links() should return an error and stop the CLC flow accessing to uninitialized mr. Fixes: b9247544c1bc ("net/smc: convert static link ID instances to support multiple links") Signed-off-by: Wen Gu <guwen@linux.alibaba.com> Link: https://lore.kernel.org/r/1663656189-32090-1-git-send-email-guwen@linux.alibaba.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions