Skip to content

Commit 6a82d3e

Browse files
Chien-Hua YenMukesh Kacker
authored andcommitted
RDS: looping to reap cq recv queue in rds_conn_shutdown
Orabug: 18501034 Signed-off-by: Chien-Hua Yen <[email protected]> Signed-off-by: Bang Nguyen <[email protected]> (cherry picked from commit e1bab7c0e9af8e56e973c1c65f4f3f7474979c66) Signed-off-by: Jerry Snitselaar <[email protected]> (cherry picked from commit a148e65)
1 parent 7b21ad5 commit 6a82d3e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

net/rds/ib_cm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ void rds_ib_tasklet_fn_send(unsigned long data)
371371
memset(&ack_state, 0, sizeof(ack_state));
372372
rds_ib_stats_inc(s_ib_tasklet_call);
373373

374+
/* if send cq has been destroyed, ignore incoming cq event */
375+
if (!ic->i_scq)
376+
return;
377+
374378
poll_cq(ic, ic->i_scq, ic->i_send_wc, &ack_state, 0);
375379
ib_req_notify_cq(ic->i_scq, IB_CQ_NEXT_COMP);
376380
poll_cq(ic, ic->i_scq, ic->i_send_wc, &ack_state, 0);

0 commit comments

Comments
 (0)