[DCCP]: Reduce the number of writable states
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Wed, 26 Sep 2007 22:36:08 +0000 (19:36 -0300)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:45 +0000 (16:52 -0700)
commitcecd8d0ec4cb4fec728f67163bb0a78f80c292eb
tree0203cb30479143463cb2228ef872be2f1e10ddec
parente356d37a096a990ea1a74c44c15640122e56110b
[DCCP]: Reduce the number of writable states

Since DCCP requires to close both ends of a connection simultaneously,
permission to write in state DCCP_CLOSING is removed in dccp_sendmsg():
 * if the sending end closed, it would encounter a write error anyhow;
 * if the other end has closed the connection, it accepts no more data.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
net/dccp/proto.c