diff options
author | Andy Grover <andy.grover@oracle.com> | 2010-03-11 14:49:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-17 05:16:54 +0100 |
commit | 1123fd734df6ad82373a5a27f0f2ed3115555b9d (patch) | |
tree | 9f0348b2d603a4d18855f01bbd34249c2c2b3f72 /net | |
parent | RDS: Do not BUG() on error returned from ib_post_send (diff) | |
download | linux-1123fd734df6ad82373a5a27f0f2ed3115555b9d.tar.xz linux-1123fd734df6ad82373a5a27f0f2ed3115555b9d.zip |
RDS: sendmsg() should check sndtimeo, not rcvtimeo
Most likely cut n paste error - sendmsg() was checking sock_rcvtimeo.
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/rds/send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/send.c b/net/rds/send.c index b2fccfc20769..ad2e46947c8a 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -815,7 +815,7 @@ int rds_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, int ret = 0; int queued = 0, allocated_mr = 0; int nonblock = msg->msg_flags & MSG_DONTWAIT; - long timeo = sock_rcvtimeo(sk, nonblock); + long timeo = sock_sndtimeo(sk, nonblock); /* Mirror Linux UDP mirror of BSD error message compatibility */ /* XXX: Perhaps MSG_MORE someday */ |