]> git.baikalelectronics.ru Git - kernel.git/commit
Subject: [PATCH] af_iucv: enable control sends in case of SEND_SHUTDOWN
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Fri, 7 Oct 2016 13:51:47 +0000 (15:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Oct 2016 05:56:04 +0000 (01:56 -0400)
commit7d577c2c191b9fc734fecd67068254f8f04db7e2
treeb48d5473773c9ccf469b204816e54e6f0a821e22
parent54dd65e4b5d0677c814b57d21c72486cce6540eb
Subject: [PATCH] af_iucv: enable control sends in case of SEND_SHUTDOWN

If a socket program has shut down the socket for sending, it can still
receive an undetermined number of packets. The AF_IUCV protocol for
HIPER transport requires sending of a WIN flag from time to time
from the receiver to the sender, otherwise the peer cannot continue
sending. That means sending of control flags must still work, even
though the AF_IUCV socket is shutdown for sending data.
sock_alloc_send_skb() returns with error EPIPE, if socket sk_shutdown
is SEND_SHUTDOWN. Thus this patch temporarily removes the send
shutdown attribute from the socket to enable transfer of control
flags.

Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c