From: Sean Hefty Date: Tue, 5 Jun 2012 21:51:13 +0000 (-0700) Subject: Refresh of rs-spin X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=42fcf88989244ebd713ee57a48b19c12ca891087;p=~shefty%2Flibrdmacm.git Refresh of rs-spin --- diff --git a/src/rsocket.c b/src/rsocket.c index b8ae3b4d..3619af45 100644 --- a/src/rsocket.c +++ b/src/rsocket.c @@ -955,7 +955,7 @@ static int rs_get_comp(struct rsocket *rs, int nonblock, int (*test)(struct rsoc gettimeofday(&e, NULL); poll_time = (e.tv_sec - s.tv_sec) * 1000000 + (e.tv_usec - s.tv_usec) + 1; - } while (poll_time < polling_time); + } while (poll_time <= polling_time); ret = rs_process_cq(rs, 0, test); return ret; @@ -1522,7 +1522,7 @@ int rpoll(struct pollfd *fds, nfds_t nfds, int timeout) gettimeofday(&e, NULL); poll_time = (e.tv_sec - s.tv_sec) * 1000000 + (e.tv_usec - s.tv_usec) + 1; - } while (poll_time < polling_time); + } while (poll_time <= polling_time); rfds = rs_fds_alloc(nfds); if (!rfds)