send.c (62910554656cdcd6b6f84a5154c4155aae4ca231) send.c (aa395145165cb06a0d0885221bbe0ce4a564391d)
1/*
2 * Copyright (c) 2006 Oracle. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 901 unchanged lines hidden (view full) ---

910 ret = -EMSGSIZE;
911 goto out;
912 }
913 if (nonblock) {
914 ret = -EAGAIN;
915 goto out;
916 }
917
1/*
2 * Copyright (c) 2006 Oracle. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 901 unchanged lines hidden (view full) ---

910 ret = -EMSGSIZE;
911 goto out;
912 }
913 if (nonblock) {
914 ret = -EAGAIN;
915 goto out;
916 }
917
918 timeo = wait_event_interruptible_timeout(*sk->sk_sleep,
918 timeo = wait_event_interruptible_timeout(*sk_sleep(sk),
919 rds_send_queue_rm(rs, conn, rm,
920 rs->rs_bound_port,
921 dport,
922 &queued),
923 timeo);
924 rdsdebug("sendmsg woke queued %d timeo %ld\n", queued, timeo);
925 if (timeo > 0 || timeo == MAX_SCHEDULE_TIMEOUT)
926 continue;

--- 84 unchanged lines hidden ---
919 rds_send_queue_rm(rs, conn, rm,
920 rs->rs_bound_port,
921 dport,
922 &queued),
923 timeo);
924 rdsdebug("sendmsg woke queued %d timeo %ld\n", queued, timeo);
925 if (timeo > 0 || timeo == MAX_SCHEDULE_TIMEOUT)
926 continue;

--- 84 unchanged lines hidden ---