af_iucv: avoid path quiesce of severed path in shutdown()
authorUrsula Braun <ursula.braun@de.ibm.com>
Mon, 21 Jul 2014 10:54:44 +0000 (12:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jul 2014 03:21:40 +0000 (20:21 -0700)
commit1042cab8627a2d11491e8b0dd40c4dda3180285a
tree0b741e99e50399fe2d733be6dd69149657777ae1
parent45cbb2e499cf4686e809206b29377a7e15037bcc
af_iucv: avoid path quiesce of severed path in shutdown()

An af_iucv stress test showed -EPIPE results for sendmsg()
calls. They are caused by quiescing a path even though it has
been already severed by peer. For IUCV transport shutdown()
consists of 2 steps:
(1) sending the shutdown message to peer
(2) quiescing the iucv path
If the iucv path between these 2 steps is severed due to peer
closing the path, the quiesce step is no longer needed.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Reported-by: Philipp Hachtmann <phacht@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c