Skip to content

Commit 9dfccb6

Browse files
Guoqing Jiangrleon
authored andcommitted
RDMA/siw: Call llist_reverse_order in siw_run_sq
We can call the function to get fifo list. Signed-off-by: Guoqing Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Bernard Metzler <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
1 parent bee024d commit 9dfccb6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/infiniband/sw/siw/siw_qp_tx.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,13 +1271,7 @@ int siw_run_sq(void *data)
12711271
* llist_del_all returns a list with newest entry first.
12721272
* Re-order list for fairness among QP's.
12731273
*/
1274-
while (active) {
1275-
struct llist_node *tmp = active;
1276-
1277-
active = llist_next(active);
1278-
tmp->next = fifo_list;
1279-
fifo_list = tmp;
1280-
}
1274+
fifo_list = llist_reverse_order(active);
12811275
while (fifo_list) {
12821276
qp = container_of(fifo_list, struct siw_qp, tx_list);
12831277
fifo_list = llist_next(fifo_list);

0 commit comments

Comments
 (0)