]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: propagate file from SMC to TCP socket
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 11 Apr 2019 09:17:32 +0000 (11:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 18:04:08 +0000 (11:04 -0700)
commit93b25317540851085ddcefc3e34cfe78cb49e4d1
treeb4c1ee2e7ca061a7b37f16bdd302297bf27aaea4
parent774b8d54b04a0c74e78547dd0243a05e86506e21
net/smc: propagate file from SMC to TCP socket

fcntl(fd, F_SETOWN, getpid()) selects the recipient of SIGURG signals
that are delivered when out-of-band data arrives on socket fd.
If an SMC socket program makes use of such an fcntl() call, it fails
in case of fallback to TCP-mode. In case of fallback the traffic is
processed with the internal TCP socket. Propagating field "file" from the
SMC socket to the internal TCP socket fixes the issue.

Reviewed-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/smc/af_smc.c