diff options
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/ib_send.c | 4 | ||||
-rw-r--r-- | net/rds/iw_send.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c index 37be6e226d1b..1dde91e3dc70 100644 --- a/net/rds/ib_send.c +++ b/net/rds/ib_send.c | |||
@@ -298,7 +298,7 @@ void rds_ib_send_cq_comp_handler(struct ib_cq *cq, void *context) | |||
298 | rds_ib_stats_inc(s_ib_tx_cq_event); | 298 | rds_ib_stats_inc(s_ib_tx_cq_event); |
299 | 299 | ||
300 | if (wc.wr_id == RDS_IB_ACK_WR_ID) { | 300 | if (wc.wr_id == RDS_IB_ACK_WR_ID) { |
301 | if (ic->i_ack_queued + HZ/2 < jiffies) | 301 | if (time_after(jiffies, ic->i_ack_queued + HZ/2)) |
302 | rds_ib_stats_inc(s_ib_tx_stalled); | 302 | rds_ib_stats_inc(s_ib_tx_stalled); |
303 | rds_ib_ack_send_complete(ic); | 303 | rds_ib_ack_send_complete(ic); |
304 | continue; | 304 | continue; |
@@ -315,7 +315,7 @@ void rds_ib_send_cq_comp_handler(struct ib_cq *cq, void *context) | |||
315 | 315 | ||
316 | rm = rds_ib_send_unmap_op(ic, send, wc.status); | 316 | rm = rds_ib_send_unmap_op(ic, send, wc.status); |
317 | 317 | ||
318 | if (send->s_queued + HZ/2 < jiffies) | 318 | if (time_after(jiffies, send->s_queued + HZ/2)) |
319 | rds_ib_stats_inc(s_ib_tx_stalled); | 319 | rds_ib_stats_inc(s_ib_tx_stalled); |
320 | 320 | ||
321 | if (send->s_op) { | 321 | if (send->s_op) { |
diff --git a/net/rds/iw_send.c b/net/rds/iw_send.c index e40c3c5db2c4..9105ea03aec5 100644 --- a/net/rds/iw_send.c +++ b/net/rds/iw_send.c | |||
@@ -232,7 +232,7 @@ void rds_iw_send_cq_comp_handler(struct ib_cq *cq, void *context) | |||
232 | } | 232 | } |
233 | 233 | ||
234 | if (wc.wr_id == RDS_IW_ACK_WR_ID) { | 234 | if (wc.wr_id == RDS_IW_ACK_WR_ID) { |
235 | if (ic->i_ack_queued + HZ/2 < jiffies) | 235 | if (time_after(jiffies, ic->i_ack_queued + HZ/2)) |
236 | rds_iw_stats_inc(s_iw_tx_stalled); | 236 | rds_iw_stats_inc(s_iw_tx_stalled); |
237 | rds_iw_ack_send_complete(ic); | 237 | rds_iw_ack_send_complete(ic); |
238 | continue; | 238 | continue; |
@@ -267,7 +267,7 @@ void rds_iw_send_cq_comp_handler(struct ib_cq *cq, void *context) | |||
267 | 267 | ||
268 | send->s_wr.opcode = 0xdead; | 268 | send->s_wr.opcode = 0xdead; |
269 | send->s_wr.num_sge = 1; | 269 | send->s_wr.num_sge = 1; |
270 | if (send->s_queued + HZ/2 < jiffies) | 270 | if (time_after(jiffies, send->s_queued + HZ/2)) |
271 | rds_iw_stats_inc(s_iw_tx_stalled); | 271 | rds_iw_stats_inc(s_iw_tx_stalled); |
272 | 272 | ||
273 | /* If a RDMA operation produced an error, signal this right | 273 | /* If a RDMA operation produced an error, signal this right |