]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Only save the original clcsock callback functions
authorWen Gu <guwen@linux.alibaba.com>
Fri, 22 Apr 2022 07:56:18 +0000 (15:56 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 25 Apr 2022 18:03:48 +0000 (11:03 -0700)
commit76c9b360d6fe92a9d66fc66aa3f6007d49a70448
tree1a0b5bc5054b231e1cc9d87353b1c2b9629372f0
parentc4014c3a17fc6759b13ade1b1da30080e5f4f1c8
net/smc: Only save the original clcsock callback functions

Both listen and fallback process will save the current clcsock
callback functions and establish new ones. But if both of them
happen, the saved callback functions will be overwritten.

So this patch introduces some helpers to ensure that only save
the original callback functions of clcsock.

Fixes: 44d6a98e32cf ("net/smc: Forward wakeup to smc socket waitqueue after fallback")
Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Acked-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/smc/af_smc.c
net/smc/smc.h
net/smc/smc_close.c