af_iucv: Return -EAGAIN if iucv msg limit is exceeded
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Wed, 17 Jun 2009 21:54:48 +0000 (21:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jun 2009 07:10:40 +0000 (00:10 -0700)
commit0ea920d211e0a870871965418923b08da2025b4a
tree5dc3451a2011f0d32839b5aef20d9aaec1da78cf
parentbb664f49f8be17d7b8bf9821144e8a53d7fcfe8a
af_iucv: Return -EAGAIN if iucv msg limit is exceeded

If the iucv message limit for a communication path is exceeded,
sendmsg() returns -EAGAIN instead of -EPIPE.
The calling application can then handle this error situtation,
e.g. to try again after waiting some time.

For blocking sockets, sendmsg() waits up to the socket timeout
before returning -EAGAIN. For the new wait condition, a macro
has been introduced and the iucv_sock_wait_state() has been
refactored to this macro.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/iucv/af_iucv.h
net/iucv/af_iucv.c