mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
RDS: IB: Remove the RDS_IB_SEND_OP dependency
This helps to combine asynchronous fastreg MR completion handler with send completion handler. No functional change. Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
72f26eee51
commit
dcfd041c87
@@ -195,7 +195,7 @@ void rds_ib_send_init_ring(struct rds_ib_connection *ic)
|
||||
|
||||
send->s_op = NULL;
|
||||
|
||||
send->s_wr.wr_id = i | RDS_IB_SEND_OP;
|
||||
send->s_wr.wr_id = i;
|
||||
send->s_wr.sg_list = send->s_sge;
|
||||
send->s_wr.ex.imm_data = 0;
|
||||
|
||||
@@ -263,9 +263,7 @@ void rds_ib_send_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc)
|
||||
|
||||
oldest = rds_ib_ring_oldest(&ic->i_send_ring);
|
||||
|
||||
completed = rds_ib_ring_completed(&ic->i_send_ring,
|
||||
(wc->wr_id & ~RDS_IB_SEND_OP),
|
||||
oldest);
|
||||
completed = rds_ib_ring_completed(&ic->i_send_ring, wc->wr_id, oldest);
|
||||
|
||||
for (i = 0; i < completed; i++) {
|
||||
send = &ic->i_sends[oldest];
|
||||
|
Reference in New Issue
Block a user