]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
RDS: sendmsg() should check sndtimeo, not rcvtimeo
authorAndy Grover <andy.grover@oracle.com>
Mon, 14 Dec 2009 22:38:56 +0000 (14:38 -0800)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 23:41:20 +0000 (16:41 -0700)
Most likely cut n paste error - sendmsg() was checking sock_rcvtimeo.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
net/rds/send.c

index e9651aede45ca2af712b7a899274e44db38ec61f..b155b07b477f40b5339472b8f319db61bbcc94ab 100644 (file)
@@ -816,7 +816,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 */